Home » RDBMS Server » Server Utilities » WHEN clause - urgent
WHEN clause - urgent [message #72040] Wed, 26 February 2003 03:30 Go to next message
string
Messages: 1
Registered: February 2003
Junior Member
Hi ! I'm interested in loading certain records in a fixed length input file, I know that it is possible to do that with a statement like :

INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:1)= 'D'

but I would like to specify more conditions using a "OR" instead of "AND" How can I do that ? I tried writing:

INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:1) = 'D' AND (2:2)='E' OR (2:2) = 'F' OR (2:2) = 'G'

this statement gives syntax errors. Can anyone help me please ?
Re: WHEN clause - urgent [message #72041 is a reply to message #72040] Wed, 26 February 2003 03:45 Go to previous messageGo to next message
Deborrah
Messages: 8
Registered: July 2002
Junior Member
I am afraid,
You can not use OR condition in WHEN clause.
Re: WHEN clause - urgent [message #72045 is a reply to message #72040] Wed, 26 February 2003 05:37 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
deborrah is right..
and i beleive, u can use decode to impliment the same.
Re: WHEN clause - urgent [message #72065 is a reply to message #72040] Fri, 28 February 2003 13:46 Go to previous message
Michel Bartov
Messages: 35
Registered: February 2003
Member
Suggestion:
Try use:
INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:1) = 'D' AND (2:2)='E'
INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:1) = 'D' AND (2:2)='F'
INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:1) = 'D' AND (2:2)='G'

Previous Topic: Oracle (9i)
Next Topic: Oracle shutdown/running
Goto Forum:
  


Current Time: Wed May 15 06:58:46 CDT 2024