View Single Post
  #15 (permalink)  
Old 11-12-08, 10:39
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
good one, tony

i think you'll find that MOD, LEN, and MID are not ANSI SQL functions

as for data integrity, that issue is moot when we're talking about incremental numbers, as pat suggested, you could have P00001, P00002, and then some wise guy inserts P00937, which fits the constraint, but is a time bomb waiting for the incremental numbers to reach that point...
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote