|
Тема |
Re: Oracle, UNIQUE KEYS and NULLs [re: phpGuru] |
|
Автор |
GolfSynchro (VW фен) |
|
Публикувано | 25.08.04 13:03 |
|
|
пробвай това
CREATE OR REPLACE FUNCTION f_uk(c1 NUMBER, c2 NUMBER) RETURN VARCHAR2
DETERMINISTIC AS
BEGIN
IF c2 IS NOT NULL
THEN
RETURN c1 || '-' || c2;
ELSE
RETURN NULL;
END IF;
END f_uk;
create table TEST2
(
ID NUMBER not null,
ID2 NUMBER
);
create unique index test_uk on TEST2(substr(f_uk(ID,ID2),1,100));
при мен работи(Oralce 9.2.0.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 |
|
|
|
|