Not Selecting All Columns in select query

  • I am having one temporary table with dynamic columns..... means numbers of columns changes as per conditions.

    when i m using select query like:

    "SELECT * FROM ##Temp123;"

    but i dont want that all columns will come. I am knowing the column names which i dont want that they come, but dont know how to stop them for coming while using select query.

    Please help me

    Thanks in advance:-)

  • SELECT columnname1, someothercolumnname, yetanothercolumnname

    FROM ##Temp123

    Clear?

    CEWII

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply