Код: Выделить всё
create table objProcedures (
ProcID integer not null,
ProcName varchar(60) not null,
ProcDesign varchar(30) not null,
ProcType integer not null,
ProcChgnDate date not null,
MethID integer,
SysSubCode integer,
ProcDescr blob sub_type -1,
Who varchar(30),
Blocks integer
);
Код: Выделить всё
alter table OBJPROCEDURES
add constraint PK_OBJPROCEDURES primary key (PROCID);
Код: Выделить всё
alter table OBJPROCEDURES
add constraint UQ_OBJPROCEDURES_PP unique (PROCNAME, PROCDESIGN);
Код: Выделить всё
create index IDX_OBJPROCEDURES_PROCDESIGN on OBJPROCEDURES (UPPER(PROCDESIGN));
Пробовал писать "computed by (upper(PROCDESIGN))"
Тогда индекс создаётся, но по какому полю непонятно.... Видимо не по какому : (.
Пробовал Функцию upper заменить на rupper (из rFunc) то же.
В SQL я совсем новичёк. В чём тут секрет?
(У меня FireBird_2_0)