首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

记要一次删除Oracle表字段的非空约束

2013-08-13 
记录一次删除Oracle表字段的非空约束select * from test vntwhere (vnt.dno, vnt.tno, vnt.year, vnt.pno)

记录一次删除Oracle表字段的非空约束
select * from test vntwhere (vnt.dno, vnt.tno, vnt.year, vnt.pno) in(select t.dno, t.tno, t.year, t.pno from test tgroup by t.dno, t.tno, t.year, t.pno having count(*) > 1)order by dno, tno, year, pno;

?
删除重复记录或修改重复记录,然后重新执行上面的3,4就OK了。

热点排行