Subject | Re: [firebird-support] Setting a field to unique but case insensitive |
---|---|
Author | Martijn Tonies |
Post date | 2008-08-12T10:42:55Z |
> > Is it possibe to set a field to unique but case insensitive ?However, an index is not the same as a constraint :-)
>
> 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.
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