Exforsys
+ Reply to Thread
Results 1 to 3 of 3

DB2 - SELECT - INTO Statement

This is a discussion on DB2 - SELECT - INTO Statement within the DB2 forums, part of the Database category; Hello Members I need correct syntax for writing SELECT - INTO statement with ORDER BY clause. Can anyone of you ...

  1. #1
    James Allen is offline Junior Member Array
    Join Date
    Jan 2006
    Answers
    20

    DB2 - SELECT - INTO Statement

    Hello Members

    I need correct syntax for writing SELECT - INTO statement with ORDER BY clause. Can anyone of you please help me. Does DB2 support such SELECT Statement.

    Awaiting your early response.

    Regards
    Allen


  2. #2
    sanereddy is offline Member Array
    Join Date
    Nov 2004
    Answers
    85
    Hello,

    DB2 Support select into.... here is an example...

    INSERT INTO table1
    SELECT field1, field2 FROM table2
    WHERE field3='test';


    Hope this helps...

    Thanks,


  3. #3
    James Allen is offline Junior Member Array
    Join Date
    Jan 2006
    Answers
    20
    Hello Senereddy

    Thanks for your quick response,
    I would like to confirm again the SELECT Statement with an Order By Clause.
    After you send me the syntax, I will try to test it on my system.
    I am asking very simple syntax, Hope you wont mind.

    Thanks again.
    Cheers
    Allen


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...