Fixed outdated statements on NULL indexing and multi-table delete.

parent 7a63b2a8
...@@ -47547,10 +47547,12 @@ mysql> SELECT * FROM my_table WHERE phone IS NULL; ...@@ -47547,10 +47547,12 @@ mysql> SELECT * FROM my_table WHERE phone IS NULL;
mysql> SELECT * FROM my_table WHERE phone = ""; mysql> SELECT * FROM my_table WHERE phone = "";
@end example @end example
In MySQL, as in many other SQL servers, you can't index Note that you can only add an index on a column that can have @code{NULL}
columns that can have @code{NULL} values. You must declare such columns values if you are using MySQL Version 3.23.2 or newer and are using the
@code{NOT NULL}. Conversely, you cannot insert @code{NULL} into an indexed @code{MyISAM} or @code{InnoDB} table type.
column. In earlier versions and with other table types, you must declare such
columns @code{NOT NULL}. This also means you cannot then insert
@code{NULL} into an indexed column.
@findex LOAD DATA INFILE @findex LOAD DATA INFILE
When reading data with @code{LOAD DATA INFILE}, empty columns are updated When reading data with @code{LOAD DATA INFILE}, empty columns are updated
...@@ -47613,9 +47615,9 @@ decide which rows from the result set should be used. ...@@ -47613,9 +47615,9 @@ decide which rows from the result set should be used.
@cindex rows, deleting @cindex rows, deleting
@cindex tables, deleting rows @cindex tables, deleting rows
As MySQL doesn't support sub-selects or use of more than one table As MySQL doesn't yet support sub-selects, nor the use of more than one
in the @code{DELETE} statement, you should use the following approach to table in the @code{DELETE} statement (prior to Version 4.0), you should
delete rows from 2 related tables: use the following approach to delete rows from 2 related tables:
@enumerate @enumerate
@item @item
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment