ALTER TABLE drawslip 添加主键约束 ADD CONSTRAINT XPKdrawslip PRIMARY KEY (dw_num,acnum); ALTER TABLE drawslip 在drawslip表中的acnum字段中添加外键约束 ADD (CONSTRAINT R_6 FOREIGN KEY (acnum) REFERENCES luser(acnum)); 五、插入(insert)数据 1、插入储户表(luser)数据 insert into luser (ACNUM, ID, NAME, SEX,HEIGHT, ADDRESS, BALA