DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: WHEN clause

  1. #1
    Join Date
    Feb 2003
    Posts
    1

    Smile WHEN clause

    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. Anyone can help me ?=)

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    I assume you are talking about WHEN condition in SQLLoader's control file.

    Unfortunately only the OR operator is supported in those. AFAIK this hasn't been changed in 9i either.

    For your example, you'll probably have to change that WHEN statement into something like:

    " INTO TABLE SIEBEL.EIM_FN_CONTACT1 WHEN (1:2) = 'DE' OR (1:2) = 'DF' OR (1:2) = 'DG' "
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width