CREATE TABLE STATEMENT
The syntax for the SQL CREATE TABLE statement is:CREATE TABLE table_name
(
column1 datatype null/not null,
column2 datatype null/not null,
...
);
Each column must have a datatype. The column should either be
defined as "null" or "not null" and if this value is left blank, the
database assumes "null" as the default.For Example
CREATE TABLE suppliers
( supplier_id number(10) not null,
supplier_name varchar2(50) not null,
contact_name varchar2(50)
);
No comments:
Post a Comment