You are on page 1of 1

???? ??????? ?????????

create table discat(


discat_id number primary key,
discat_name varchar2(50)
)
;
========================
???? ?????????
create table dis(
dis_sn number primary key,
dis_amount number not null,
dis_detail varchar2(100),
dis_date date,
dis_catid number references discat(discat_id))
==========================
??????? ?????????
create table Revcat(
refcat_id number primary key,
refcat_name varchar2(100) not null)
/
===================
???? ?????????
create table revenues(
rev_sn number primary key,
rev_amount number not null,
rev_detail varchar2(100) ,
rev_date date,
rev_catid number references revcat(refcat_id))
/