TP2_sql
TP2_sql
TP2 14/10/2023
create table client (
fst_name char(7) ,
);
price number(7),
creat_date date ,
amount number(7),
cart_id number(5)
id_client char(7),
)
create table oorderline (
qty int ,
id_cart number(4),
datep date ,
id_card number(4),
ordnum number(4),
typec varchar(20),
date_exp date
describe client ;
describe product ;
describe oorder ;
describe cart ;
describe oorderline ;
describe payment ;
describe card ;
alter table client add constraint c_email check (email is not null)
alter table client add constraint c_login check (login is not null)
alter table client add constraint c_passwd2 check (passwd is not null)