Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    11

    Unanswered: column wise data to row data wise data in sql

    Hi

    I have get 3 columns in a select query. how can show these 3 columns in row wise

    Regards
    Njk

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    SELECT 'column1=', column1 FROM daTable
    UNION ALL
    SELECT 'column2=', column2 FROM daTable
    UNION ALL
    SELECT 'column3=', column3 FROM daTable
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Jun 2009
    Posts
    11
    Thank u

    Njk

Posting Permissions

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