|
Тема |
Oracle, UNIQUE KEYS and NULLs |
|
Автор |
phpGuru (член) |
|
Публикувано | 24.08.04 16:14 |
|
|
как да накарам unique key и nulls да се държат адекватно? ;-)
create table test (id number null);
alter table TEST
add constraint SS unique (ID)
using index;
insert into test (null);
insert into test (null);
insert into test (null);
супер си бачка - вкарва всички редове
ОБАЧЕ!!!!
create table TEST2
(
ID NUMBER not null,
ID2 NUMBER
);
alter table TEST2
add constraint SS unique (ID,ID2)
using index;
insert into test2 (id) values (1);
insert into test2 (id) values (1); -- ГЪРМИ, ТА ПУШЕК СЕ ДИГА .... къде ги виде тез еднакви редове ........
имате ли идиа как да си направя contstraint-а, така че да ми дава
1, null
1, null
1, null
но не и
1, 1
1, 1
|
| |
Oracle, UNIQUE KEYS and NULLs
|
phpGuru
| 24.08.04 16:14 |
Re: Oracle, UNIQUE KEYS and NULLs
| no_data_found
| 24.08.04 17:03 |
Re: Oracle, UNIQUE KEYS and NULLs
| no_data_found
| 24.08.04 17:27 |
Re: Oracle, UNIQUE KEYS and NULLs
| phpGuru
| 24.08.04 17:36 |
Re: Oracle, UNIQUE KEYS and NULLs
| AcidMemory
| 24.08.04 18:41 |
Re: Oracle, UNIQUE KEYS and NULLs
| phpGuru
| 24.08.04 18:51 |
Re: Oracle, UNIQUE KEYS and NULLs
| timmyyy
| 25.08.04 11:00 |
Re: Oracle, UNIQUE KEYS and NULLs
| phpGuru
| 25.08.04 12:40 |
Re: Oracle, UNIQUE KEYS and NULLs
| GolfSynchro
| 25.08.04 13:03 |
Re: Oracle, UNIQUE KEYS and NULLs
| phpGuru
| 25.08.04 13:44 |
Re: Oracle, UNIQUE KEYS and NULLs
| no_data_found
| 25.08.04 16:21 |
Re: Oracle, UNIQUE KEYS and NULLs
| Пpяk op
| 10.09.04 17:05 |
|
|
|
|