DEFAULT()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
Returns the default value for the given table column.
EXAMPLES
CREATE TABLE t1 (
a INT DEFAULT -1,
b VARCHAR(10) DEFAULT 'abc'
);
INSERT INTO t1 VALUES (1,'a');
SELECT DEFAULT(a), DEFAULT(b) FROM t1;
+------------+------------+
| DEFAULT(a) | DEFAULT(b) |
+------------+------------+
| -1 | abc |
+------------+------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.