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

Thread: multiple into in a select statement

  1. #1
    Join Date
    Jun 2003
    Posts
    47

    Question multiple into in a select statement

    Hi,

    I wanted to select more fields of a select statement into variables, but I saw that this was not possible doing this

    select mt.firstfield into var1,mt.secondfield into var2,mt.thirdfield into var3
    from my_table mt

    How can i do this??

    thanks
    edli

  2. #2
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    How about..

    Code:
    SELECT col1, col2
    INTO var1, var2
    FROM tablename;
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

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