Difference between revisions of "Create table"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
| − | |||
* [[MariaDB]]: https://mariadb.com/kb/en/create-table/ | * [[MariaDB]]: https://mariadb.com/kb/en/create-table/ | ||
* [[PostgreSQL]]: https://www.postgresql.org/docs/current/sql-createtable.html | * [[PostgreSQL]]: https://www.postgresql.org/docs/current/sql-createtable.html | ||
| − | + | == Examples == | |
| − | + | * <code>[[CREATE TABLE numbers ( value INTEGER );]]</code> | |
| − | + | * <code>CREATE TABLE yourtable () [[PARTITION BY RANGE]] ();</code> | |
| − | |||
| − | |||
== Related == | == Related == | ||
Revision as of 08:54, 5 May 2025
- MariaDB: https://mariadb.com/kb/en/create-table/
- PostgreSQL: https://www.postgresql.org/docs/current/sql-createtable.html
Examples
CREATE TABLE numbers ( value INTEGER );CREATE TABLE yourtable () PARTITION BY RANGE ();
Related
- MariaDB:
show table - PostgreSQL:
\dt - PostgreSQL: CREATE FOREIGN TABLE
create database- DROP TABLE
- INSERT INTO
- ALTER TABLE
- ALTER TABLE tablename OWNER TO "new-owner";
- cannot execute CREATE TABLE in a read-only transaction
- Read only
- RedShift:
CREATE EXTERNAL TABLE
See also
CREATE TABLE, PARTITION BY { RANGE | LIST | HASH }- Table, foreign table, external table,
show table, Delete rows of a table, Table Partitioning (PARTITION BY RANGE),\dt, Hash table,CREATE TABLE, DROP TABLE, ALTER TABLE, SHOW TABLES, TRUNCATE CREATE [ DATABASE | INDEX | USER | ROLE | VIEW | TABLE | TRIGGER | FUNCTION | COLLATION ]
Advertising: