简单的做法是使用数据库建模工具:visio、erwin4、PowerDesign
如果你使用sql的话,麻烦一些,可以参考sql reference的语法介绍

解决方案 »

  1.   

    create table student( id char(10) primary key , name varchar2(20) , sex number(1) ) ;
    create table score( id char(10) , math number(5,2) ,constraint FK_STUDENT foreign key ( id ) references student( id ) ) ;
    你可以用一些数据库建模工具来建表
      

  2.   

    能对constraint FK_STUDENT foreign key ( id ) references student( id ) ) ;
    解释一下忙?
    绝对给分
      

  3.   

    create table student(id char(10),name varchar(8),sex char(1));
    alter table student add constraint pk_student primary key(id);
    create table score( id char(10),math number(5,2));
    alter table score add constraint fk_scroe foreign key(id) references student;
      

  4.   

    constraint FK_STUDENT foreign key ( id ) references student( id ) ) ;
    就是把score的id 做為外鍵與student的id建立關聯。FK_STUDETN是外鍵的名子。