Oracle Learning Notes 2 (Original)

zhaozj2021-02-16  48

1, the meaning of NULL in Oracle:

NULL does not represent a zero value, nor does it indicate a space, is used to represent a value value in the character field.

2. Create a grammar for the table:

CREATE TABLE Name (

Column Name 1 Data Type [Length] [Default] [Constraint],

Column 2 Data Type [Length] [Default] [Constraint],

Column 3 Data Type [Length] [Default] [Constraint],

Column 4 Data Type [Length] [Default] [Constraint],

Column 5 Data Type [Length] [Default] [Constraint]

. . . . . . . . .

);

Su: Create Table Testable

Men_code char (5) Primary Key,

Men_name Varhcar2 (20) Not Null,

Men_sex char (3) Default 'Men',

MEN_AGE NUMBER);

3, copy table

CREATE TABLE new table name AS

CopyRight © 2020 All Rights Reserved
Processed: 0.046, SQL: 9