Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:mysql:create_table [2007/08/02 09:15] – billh | docs:mysql:create_table [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== CREATE TABLE ====== | ====== CREATE TABLE ====== | ||
- | ===== basic syntax | + | ===== Basic Syntax |
- | < | + | < |
CREATE TABLE tablename | CREATE TABLE tablename | ||
( | ( | ||
Line 8: | Line 8: | ||
column | column | ||
... | ... | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | ===== Basic Example ===== | ||
+ | <code sql> | ||
+ | CREATE TABLE Vendors | ||
+ | ( | ||
+ | vend_id | ||
+ | vend_name | ||
+ | vend_address | ||
+ | vend_city | ||
+ | vend_state | ||
+ | vend_zip | ||
+ | vend_country | ||
); | ); | ||
</ | </ |