Subject Re: [firebird-support] Setting a field to unique but case insensitive
Author Martijn Tonies
> > Is it possibe to set a field to unique but case insensitive ?
>
> Yes. With an ODS 11 database, you can create an expression-based index
> like that. E.g.:
>
> create unique index i_t1_vc2 on t1 computed by (upper(vc2));
>
> where t1 is the table and vc2 the case insensitive unique field.

However, an index is not the same as a constraint :-)

Are you planning on using that constraint as the target for referential
constraints?

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com