Home » Server Options » Text & interMedia » Multiple options in Check Constraint
Multiple options in Check Constraint [message #76105] Thu, 22 July 2004 22:02 Go to next message
ID
Messages: 17
Registered: February 2004
Junior Member
Hi friends,

 I m trying to put a check constraint on a particular column say Emp_Name of Emp table and I want it(Emp_Name) should start with either 'P' or 'S'. How will I able to put this condition thru a Check Constraint on this column.

    Thnx in adv.

         ID

    
Re: Multiple options in Check Constraint [message #76146 is a reply to message #76105] Sun, 28 November 2004 09:07 Go to previous message
Just John
Messages: 69
Registered: November 2004
Member
this code provides the (an) answer.

SELECT *
FROM emp
WHERE SUBSTR(Emp_Name,1,1) IN ('S','P');
Previous Topic: How to use & in contains keyword in context index
Next Topic: Oracle Context - Solution
Goto Forum:
  


Current Time: Mon Sep 01 07:08:20 CDT 2014

Total time taken to generate the page: 0.07295 seconds