SQL CREATE ALTER DROP TABLE: Difference between revisions
Jump to navigation
Jump to search
(→CREATE) |
(→CREATE) |
||
Line 4: | Line 4: | ||
=<tt>CREATE</tt>= | =<tt>CREATE</tt>= | ||
<syntaxhighlight lang='sql'> | <syntaxhighlight lang='sql'> | ||
CREATE TABLE person | |||
(id SMALLINT, | |||
name VARCHAR(30), | |||
CONSTRAINT pk_person PRIMARY KEY (id) | |||
); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
:{| class="wikitable" style="text-align: left;" | :{| class="wikitable" style="text-align: left;" |
Revision as of 22:21, 22 May 2024
Internal
CREATE
CREATE TABLE person
(id SMALLINT,
name VARCHAR(30),
CONSTRAINT pk_person PRIMARY KEY (id)
);
PostgreSQL MariaDB