List:Internals« Previous MessageNext Message »
From:Martin Friebe Date:March 16 2007 7:42pm
Subject:select *, more_fields
View as plain text  
Hi,

I believe to remember there have been feature requests, about the 
placement options for the * in the select
( http://bugs.mysql.com/bug.php?id=26066 )

currently the * must be the first in the list.
 select *, field from table => ok
 select  field, * from table => not ok

This appears to be fixable in the parser with little effort.
So the questions are:
- Is it SQL standard conform?
- Is it a feature that would be wanted?

If it is "yes", I can supply a patch.

One more question, if "yes"

Should 
  "select *, * from table" be allowed?
My first thought would be "no", but then you can already do:
  "select table.*, table.* from table from table"

Any thought?

Best Regards
Martin
Thread
select *, more_fieldsMartin Friebe16 Mar
  • Re: select *, more_fieldsChad MILLER17 Mar
    • Re: select *, more_fieldsMartin Friebe17 Mar
      • engine agnostic test [Re: select *, more_fields]Martin Friebe17 Mar
    • Re: select *, more_fieldsVladimir Shebordaev17 Mar
      • Re: select *, more_fieldsMartin Friebe18 Mar
      • Re: select *, more_fieldsPeter Gulutzan21 Mar
        • draft of sql2003 / quoting [Re: select *, more_fields]Martin Friebe21 Mar