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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
023b146d
Commit
023b146d
authored
May 24, 2002
by
arjen@fred.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed outdated statements on NULL indexing and multi-table delete.
parent
7a63b2a8
Changes
1
Show 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 @
023b146d
...
@@ -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 tabl
e
As MySQL doesn't
yet support sub-selects, nor the use of more than on
e
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
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