How do I fetch a result of a select query in a temporary variable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shiva J
    New Member
    • Nov 2014
    • 1

    How do I fetch a result of a select query in a temporary variable?

    Hi all,

    I need to fetch a data output of an sql query in a temp variable. Can someone here help me out.

    Thanks in advance,
    Shiva J
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Please try to describe more about your problem.

    What is the query supposed to do?

    Are you trying to execute DB2 queries from application code like C#, Java, VB.NET, php or something? If so, is the temp variable part of that calling code?

    Or is your temp variable part of a DB2 script that you are attempting to write?

    -Frinny

    Comment

    Working...