docs:mysql:create_table

CREATE TABLE

CREATE TABLE tablename
(
  COLUMN  datatype  [NULL|NOT NULL]  [CONSTRAINTS],
  COLUMN  datatype  [NULL|NOT NULL]  [CONSTRAINTS],
  ...
);
CREATE TABLE Vendors
(
  vend_id       CHAR(10)     NOT NULL,
  vend_name     CHAR(50)     NOT NULL,
  vend_address  CHAR(50)     ,
  vend_city     CHAR(50)     ,
  vend_state    CHAR(5)      ,
  vend_zip      CHAR(10)     ,
  vend_country  CHAR(50)
);
  • CREATE TABLE mytable SELECT * FROM myothertable WHERE somefield = NULL
  • docs/mysql/create_table.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1