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
f04c4fd4
Commit
f04c4fd4
authored
Aug 22, 2002
by
arjen@fred.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a few common synonyms to aid searching:
DROP: delete, ALTER: change, column: field.
parent
f922064d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Docs/manual.texi
Docs/manual.texi
+22
-0
No files found.
Docs/manual.texi
View file @
f04c4fd4
...
@@ -35664,6 +35664,8 @@ You can also create databases with @code{mysqladmin}.
...
@@ -35664,6 +35664,8 @@ You can also create databases with @code{mysqladmin}.
@subsection @code{DROP DATABASE} Syntax
@subsection @code{DROP DATABASE} Syntax
@findex DROP DATABASE
@findex DROP DATABASE
@cindex deleting, database
@cindex database, deleting
@example
@example
DROP DATABASE [IF EXISTS] db_name
DROP DATABASE [IF EXISTS] db_name
...
@@ -36241,6 +36243,8 @@ using @code{myisampack}. @xref{Compressed format}.
...
@@ -36241,6 +36243,8 @@ using @code{myisampack}. @xref{Compressed format}.
@subsection @code{ALTER TABLE} Syntax
@subsection @code{ALTER TABLE} Syntax
@findex ALTER TABLE
@findex ALTER TABLE
@cindex changing, table
@cindex table, changing
@example
@example
ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]
ALTER [IGNORE] TABLE tbl_name alter_spec [, alter_spec ...]
...
@@ -36382,6 +36386,10 @@ From MySQL Version 4.0.1, you can also use the @code{FIRST} and
...
@@ -36382,6 +36386,10 @@ From MySQL Version 4.0.1, you can also use the @code{FIRST} and
@code{AFTER} keywords in @code{CHANGE} or @code{MODIFY}.
@code{AFTER} keywords in @code{CHANGE} or @code{MODIFY}.
@findex ALTER COLUMN
@findex ALTER COLUMN
@cindex changing, column
@cindex column, changing
@cindex changing, field
@cindex field, changing
@item
@item
@code{ALTER COLUMN} specifies a new default value for a column
@code{ALTER COLUMN} specifies a new default value for a column
or removes the old default value.
or removes the old default value.
...
@@ -36391,6 +36399,8 @@ assigns a default value, as described in
...
@@ -36391,6 +36399,8 @@ assigns a default value, as described in
@ref{CREATE TABLE, , @code{CREATE TABLE}}.
@ref{CREATE TABLE, , @code{CREATE TABLE}}.
@findex DROP INDEX
@findex DROP INDEX
@cindex deleting, index
@cindex index, deleting
@item
@item
@code{DROP INDEX} removes an index. This is a MySQL extension to
@code{DROP INDEX} removes an index. This is a MySQL extension to
ANSI SQL92. @xref{DROP INDEX}.
ANSI SQL92. @xref{DROP INDEX}.
...
@@ -36405,6 +36415,8 @@ If a table contains only one column, the column cannot be dropped.
...
@@ -36405,6 +36415,8 @@ If a table contains only one column, the column cannot be dropped.
If what you intend is to remove the table, use @code{DROP TABLE} instead.
If what you intend is to remove the table, use @code{DROP TABLE} instead.
@findex DROP PRIMARY KEY
@findex DROP PRIMARY KEY
@cindex deleting, primary key
@cindex primary key, deleting
@item
@item
@code{DROP PRIMARY KEY} drops the primary index. If no such
@code{DROP PRIMARY KEY} drops the primary index. If no such
index exists, it drops the first @code{UNIQUE} index in the table.
index exists, it drops the first @code{UNIQUE} index in the table.
...
@@ -36429,6 +36441,8 @@ option after big changes to the table, you may be able to get higher
...
@@ -36429,6 +36441,8 @@ option after big changes to the table, you may be able to get higher
performance.
performance.
@findex ALTER TABLE
@findex ALTER TABLE
@cindex changing, table
@cindex table, changing
@item
@item
If you use @code{ALTER TABLE} on a @code{MyISAM} table, all non-unique
If you use @code{ALTER TABLE} on a @code{MyISAM} table, all non-unique
indexes are created in a separate batch (like in @code{REPAIR}).
indexes are created in a separate batch (like in @code{REPAIR}).
...
@@ -36573,6 +36587,8 @@ to the original state.
...
@@ -36573,6 +36587,8 @@ to the original state.
@subsection @code{DROP TABLE} Syntax
@subsection @code{DROP TABLE} Syntax
@findex DROP TABLE
@findex DROP TABLE
@cindex deleting, table
@cindex table, deleting
@example
@example
DROP TABLE [IF EXISTS] tbl_name [, tbl_name,...] [RESTRICT | CASCADE]
DROP TABLE [IF EXISTS] tbl_name [, tbl_name,...] [RESTRICT | CASCADE]
...
@@ -36654,6 +36670,8 @@ are available in MySQL Version 3.23.23 and later.
...
@@ -36654,6 +36670,8 @@ are available in MySQL Version 3.23.23 and later.
@subsection @code{DROP INDEX} Syntax
@subsection @code{DROP INDEX} Syntax
@findex DROP INDEX
@findex DROP INDEX
@cindex deleting, index
@cindex index, deleting
@example
@example
DROP INDEX index_name ON tbl_name
DROP INDEX index_name ON tbl_name
...
@@ -45987,6 +46005,8 @@ native functions such as @code{ABS()} or @code{SOUNDEX()}.
...
@@ -45987,6 +46005,8 @@ native functions such as @code{ABS()} or @code{SOUNDEX()}.
@findex CREATE FUNCTION
@findex CREATE FUNCTION
@findex DROP FUNCTION
@findex DROP FUNCTION
@cindex deleting, function
@cindex function, deleting
@findex UDF functions
@findex UDF functions
@findex User-defined functions
@findex User-defined functions
@findex Functions, user-defined
@findex Functions, user-defined
...
@@ -48649,6 +48669,8 @@ mysql> SELECT i, SUM(d1) AS a, SUM(d2) AS b FROM t1
...
@@ -48649,6 +48669,8 @@ mysql> SELECT i, SUM(d1) AS a, SUM(d2) AS b FROM t1
@appendixsubsec Problems with @code{ALTER TABLE}.
@appendixsubsec Problems with @code{ALTER TABLE}.
@tindex ALTER TABLE
@tindex ALTER TABLE
@cindex changing, table
@cindex table, changing
@code{ALTER TABLE} changes a table to the current character set.
@code{ALTER TABLE} changes a table to the current character set.
If you during @code{ALTER TABLE} get a duplicate key error, then the cause
If you during @code{ALTER TABLE} get a duplicate key error, then the cause
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