![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The SQL grammar given in O'Reilly's "lex & yacc" book requires that SELECT statements include the 'INTO' clause: |
#3
| |||
| |||
|
|
The SQL grammar given in O'Reilly's "lex & yacc" book requires that SELECT statements include the 'INTO' clause: SELECT foo, bar INTO :baz FROM noodle; A very cursory look at the SQL standard leads me to believe that this is correct -- that the INTO is a required element. However, it's common to give queries of the sort SELECT foo FROM bar; or even (SELECT foo FROM bar) UNION (SELECT baz FROM fraz); Are these not valid SQL statements because they would return multiple rows of data, or ... ? Tobin |
![]() |
| Thread Tools | |
| Display Modes | |
| |