MySQL follows ANSI SQL standard quite close. But there are a few
points where it differs. To make MySQL follow the ANSI standard
more closely you can use the SQL_MODE system system
variable.
If you set the SQL mode to ANSI, MySQL will interpret you SQL
commands differently. Some of your SELECT statements might work
differently or not at all. But which ones? Let's see if you
know....
Suppose you change your sql mode setting from none to ANSI. Which
of the following statements will be affected:
a) SELECT concat(table_name,' ',column_name) FROM
information_schema.COLUMNS
b) SELECT TABLE_NAME||' '||COLUMN_NAME FROM
information_schema.COLUMNS
c) SELECT count (*) FROM information_schema.COLUMNS
d) SELECT "TABLE_NAME" FROM information_schema.COLUMNS
e) SELECT `TABLE_NAME` FROM information_schema.COLUMNS
Showing entries 1 to 1
Sep
05
2007
Showing entries 1 to 1