... for strings, it's easy... LENGTH(attribute), but for ints, LENGTH always returns "4" for ints, "8" for bigints, etc etc.
So given a statement like this:
create table EMPLOYEE (employeeno bigint NOT NULL PRIMARY KEY);
How could I add a CHECK clause that'll check to see whether an inserted employeeno is exactly 6 digits?