1 CREATE TABLE constraints ( 2 id integer primary key, 3 str varchar(256), 4 5 CONSTRAINT constraint_name UNIQUE (str) 6 );