Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Created February 23, 2012 21:07
Show Gist options
  • Save bradfordw/1895057 to your computer and use it in GitHub Desktop.
Save bradfordw/1895057 to your computer and use it in GitHub Desktop.
create table
foo
(
bool_baz int not null,
constraint
chk_bool_baz
check((bool_baz is not null and bool_baz in (1,0)))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment