Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check Constraint 1

Status
Not open for further replies.

woogoo

Programmer
Feb 14, 2004
247
GB
Hi,

I want to add a check constraint that will allow a column to contain either A, A3, A4 or A5. At present I've written it as Col = 'A' OR Col='A3' ... but I was hoping to use something like Col='A|A[3-5]' but this doesn't appear to work. Any suggestions?



woogoo
 
Code:
Col1 = 'A' OR Col1 LIKE a[3-5]

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top