The features listed in this section are implemented in MySQL 4.1. A few other features are still planned for MySQL 4.1. See section 1.9.1 New Features Planned For 4.1.
Most new features being coded, such as stored procedures, will be available in MySQL 5.0. See section 1.9.2 New Features Planned For 5.0.
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);
FROM
clause of a SELECT
statement. Here is
an example:
SELECT t1.a FROM t1, (SELECT * FROM t2) t3 WHERE t1.a=t3.a;
BTREE
indexing is now supported for HEAP
tables,
significantly improving response time for non-exact searches.
CREATE TABLE table LIKE table
allows you to create a new table
with the exact structure of an existing table, using a single command.
SHOW WARNINGS
shows warnings for the last command.
See section 4.5.7.9 SHOW WARNINGS | ERRORS
.
HELP command
that can be used in the mysql
command line
client (and other clients) to get help for SQL commands.
The advantage of having this information on the server side is that the
information is always applicable for that particular server version.
INSERT ... ON DUPLICATE KEY UPDATE ...
syntax has been
implemented. This allows you to UPDATE
an existing row if the
INSERT
would have caused a duplicate in a PRIMARY
or
UNIQUE
key (index).
See section 6.4.3 INSERT
Syntax.
GROUP_CONCAT()
,
adding the extremely useful capability of concatenating columns from
grouped rows into a single result string.
See section 6.3.7 Functions and Modifiers for Use with GROUP BY
Clauses.
The news section in this manual includes a more in-depth list of features. See section D.2 Changes in release 4.1.x (Alpha).