Presentation is loading. Please wait.

Presentation is loading. Please wait.

CREATE TABLE famille( ( NomCol1 type [NOT NULL], … NomColn type [NOT NULL], PRIMARY KEY (NomColi, NomColj,…), FOREIGN KEY (NomColk, NomColv,…)REFERENCES.

Similar presentations


Presentation on theme: "CREATE TABLE famille( ( NomCol1 type [NOT NULL], … NomColn type [NOT NULL], PRIMARY KEY (NomColi, NomColj,…), FOREIGN KEY (NomColk, NomColv,…)REFERENCES."— Presentation transcript:

1

2 CREATE TABLE famille( ( NomCol1 type [NOT NULL], … NomColn type [NOT NULL], PRIMARY KEY (NomColi, NomColj,…), FOREIGN KEY (NomColk, NomColv,…)REFERENCES tableorig NomColk, NomColv,…), CHECK ( ) ) ;

3 Desc famille;

4 DROP TABLE sous famille CASCADE CONSTRAINTS ;

5 ALTER TABLE PRODUIT ADD (macol CHAR(20)) ;

6 ALTER TABLE famille MODIFY macol [NULL/NOT NULL] );

7 ALTER TABLE famille RENAME COLUMN nom_col TO new_column_name;

8 RENAME table_name TO new_table_name ;

9 TRUNCATE TABLE famille;

10 ALTER TABLE famille DROP COLUMN num cascade contraints;

11 INSERT INTO sousfamille VALUES (‘ --- ', ‘____ ', ‘ ___ ', ‘___ ');

12 SELECT * FROM famille;


Download ppt "CREATE TABLE famille( ( NomCol1 type [NOT NULL], … NomColn type [NOT NULL], PRIMARY KEY (NomColi, NomColj,…), FOREIGN KEY (NomColk, NomColv,…)REFERENCES."

Similar presentations


Ads by Google