This is an old revision of the document!


PostgreSQL Check Constraint Supports Regular Expressions

 CREATE TABLE example_table (
      first_name VARCHAR(100)
          CONSTRAINT check_first_name
         ( first_name ~* '^[a-z]+$')
 );

see: this

postgresql.1216044329.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready