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
69a19525
Commit
69a19525
authored
Jul 24, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi Clarify (?) INSERT ...VALUES(DEFAULT)
parent
b126501b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Docs/manual.texi
Docs/manual.texi
+7
-4
No files found.
Docs/manual.texi
View file @
69a19525
...
...
@@ -34492,10 +34492,13 @@ example, if you specify a column list that doesn't name all the columns in
the table, unnamed columns are set to their default values. Default value
assignment is described in @ref{CREATE TABLE, , @code{CREATE TABLE}}.
You can also use the keyword @code{DEFAULT} to set a column to it's
defaults value. (New in MySQL 4.0.3). This makes it easier to write
insert statements as you don't have to use a field-name list just because
you don't want to set a value for a few columns.
You can also use the keyword @code{DEFAULT} to set a column to its
default value. (New in MySQL 4.0.3.) This makes it easier to write
@code{INSERT} statements that assign values to all but a few columns,
because it allows you to avoid writing an incomplete @code{VALUES()} list
(a list that does not include an value for each column in the table).
Otherwise, you would have to write out the list of column names
corresponding to each value in the @code{VALUES()} list.
MySQL always has a default value for all fields. This is something
that is imposed on MySQL to be able to work with both transactional
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