hi,
I was wondering if it is possible to add a constraint to a column so that all entries in that column start with the letter S. The data type is char(4).
I've tried using the following, and although it seems to work, when I then insert values into my table it comes back as an error because of said constraint.
alter table staff add constraint staff_ID_start check (staff_ID like 'S%');
if it helps, the error I get when attempting to insert a char(4) beginning with S, is this "Check constraint violation STAFF_ID_START table: STAFF"
thanks!
Dat