第二:1>使用jdbc,建立客户表和订单表,客户编号和订单编号为主键,
主键字段为number类型,并且都使用序列生成主键值.
2>jdbc插入一条客户记录的同时插入两条订单记录.(并且订单外键引用客户编号)
  (注意使用事务进行控制)
我想用序列自动生成主键   但是又不会。create table client(clino number(10) primary key,cliname varchar(10))
create table Indent(indno number(10) primary key,clino number(10) references client(clino))
select * from client;
select * from indent;create sequence clino
start with 1
increment by 1insert into  client values(1,'abc')
select seq_deptment.nextval from dual;
create sequence seq_deptment
start with 1
increment by 2
maxvalue 2000
nocycle
cache 10
求高手帮我看看 。我写的代码都是废的。