SQL> alter table teaching
2 add constraint pk_tea_no primary key(t_no,course_no);表已更改。SQL> alter table teaching
2 add constraint fk_tea_no foreign key (t_no) references teaalter table teaching
3 add constraint fk_course_no foreign key (course_no) references course(course_no);cher(t_no) on delete cascade;
add constraint fk_tea_no foreign key (t_no) references teaalter table teaching
*
第 2 行出现错误:
ORA-01735: 无效的 ALTER TABLE 选项各位在神帮忙看看是那里错了?本人小白一个,在网上找了一个初学者项目(下面是网址),想练习,到这里就出错了。
https://blog.csdn.net/anhldd/article/details/8296549
2 add constraint pk_tea_no primary key(t_no,course_no);表已更改。SQL> alter table teaching
2 add constraint fk_tea_no foreign key (t_no) references teaalter table teaching
3 add constraint fk_course_no foreign key (course_no) references course(course_no);cher(t_no) on delete cascade;
add constraint fk_tea_no foreign key (t_no) references teaalter table teaching
*
第 2 行出现错误:
ORA-01735: 无效的 ALTER TABLE 选项各位在神帮忙看看是那里错了?本人小白一个,在网上找了一个初学者项目(下面是网址),想练习,到这里就出错了。
https://blog.csdn.net/anhldd/article/details/8296549
解决方案 »
- 请教多用户的数据库设计 多公司+多用户+多权限
- 请教一个和clob有关的查询语句
- 征用一个批处理文件用于导出DMP文件
- 问个关于安装客户端问题
- 导入文件好有没有什么方法快一点??
- 如何得到小时差结果?
- 游标的使用问题!!!!请大家指教!!!!!!!!!!!!!不好意思啦。。。。。
- 怎么才能登陆到oracle management server。
- oracle中能够得到毫秒级的时间吗?如果可以的话,如何实现?(急!)
- 哪里有LINUX下的GDK包,用于安装ORACLE8的(Brad)
- 远程Oracle数据库EXP导出用户DMP文件
- 有没有方法把这种多个占位符的替换下,用一个参数代替多个占位参数,
3 add constraint fk_course_no foreign key (course_no) references course(course_no)很明显,这两行的语法是不一样的。 2 错,3对。