Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    3

    Question Unanswered: select column fields

    Hello,

    Please advise:

    How do you select all column fields from a table without doing select *, because I need to do a count(*) along with all fields and it won't let me.

    I under show columns from table can give info about the table and how to extract just the field names and then embeded the result into a select query?

    So psuedo-code:

    SELECT count(*) AS number, (extract all column fields from $table) FROM $table GROUP BY something;

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    you cannot do what you want

    in fact, it's not clear what you want

    can you give some example rows?
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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