Version 4.1 of the MySQL server includes many enhancements and new features. Binaries for this version are available for download at http://www.mysql.com/downloads/mysql-4.1.html.
SELECT * FROM t1 WHERE t1.a=(SELECT t2.b FROM t2); SELECT * FROM t1 WHERE (1,2,3) IN (SELECT a,b,c FROM t2);
SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;
INSERT ... ON DUPLICATE KEY UPDATE ...
syntax. This allows you to
UPDATE
an existing row if the insert would cause a duplicate value
in a PRIMARY
or UNIQUE
key. (REPLACE
allows you to
overwrite an existing row, which is something entirely different.)
See section 6.4.3 INSERT
Syntax.
GROUP_CONCAT()
aggregate function.
See section 6.3.7 Functions and Modifiers for Use with GROUP BY
Clauses.
BTREE
index on HEAP
tables.
SHOW WARNINGS
shows warnings for the last command.
See section 4.5.7.9 SHOW WARNINGS | ERRORS
.
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] table LIKE table
.
HELP command
that can be used in the mysql
command line client (and other clients) to get help for SQL commands.
For a full list of changes, please refer to the changelog sections for each individual 4.1.x release.
Posted by j v j bv on Friday August 8 2003, @3:48pm | [Delete] [Edit] |
Hello
do you intend also to add UPDATE ... ON DUPLICATE KEY UPDATE ... ?
Thanks