Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9fc5ea9a
Commit
9fc5ea9a
authored
May 24, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed outdated statements on NULL indexing and multi-table delete.
parent
975b3774
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Docs/manual.texi
Docs/manual.texi
+9
-7
No files found.
Docs/manual.texi
View file @
9fc5ea9a
...
...
@@ -47547,10 +47547,12 @@ mysql> SELECT * FROM my_table WHERE phone IS NULL;
mysql> SELECT * FROM my_table WHERE phone = "";
@end example
In MySQL, as in many other SQL servers, you can't index
columns that can have @code{NULL} values. You must declare such columns
@code{NOT NULL}. Conversely, you cannot insert @code{NULL} into an indexed
column.
Note that you can only add an index on a column that can have @code{NULL}
values if you are using MySQL Version 3.23.2 or newer and are using the
@code{MyISAM} or @code{InnoDB} table type.
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
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.
@cindex rows, deleting
@cindex tables, deleting rows
As MySQL doesn't
support sub-selects or use of more than one tabl
e
in the @code{DELETE} statement, you should use the following approach to
delete rows from 2 related tables:
As MySQL doesn't
yet support sub-selects, nor the use of more than on
e
table in the @code{DELETE} statement (prior to Version 4.0), you should
use the following approach to
delete rows from 2 related tables:
@enumerate
@item
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment