alter table aaa
drop constraint aaaa
goif exists (select 1
from sysobjects
where id = '1'
and type = 'V')
drop view VW_aaa
gocreate table bbbb(
CID int identity,
RID int null,)
go应该转成 PROCEDURE 还是 FUNCTION 还是什么别的合适呢? 具体怎么转?
最好说下原因
drop constraint aaaa
goif exists (select 1
from sysobjects
where id = '1'
and type = 'V')
drop view VW_aaa
gocreate table bbbb(
CID int identity,
RID int null,)
go应该转成 PROCEDURE 还是 FUNCTION 还是什么别的合适呢? 具体怎么转?
最好说下原因
解决方案 »
- 关于一个用户操作日志记录分类插入Oracle数据库的问题
- 问一个sql写法的问题
- EXPDP远程数据库表出错
- oracle index中的TABLESPACE名字怎么批量更新
- 请教一个按周分组的问题
- 急!!求助各位高手,谁能帮我看看我的这条语句还能怎么写,ic10里有30万条数据
- PL/SQL过期后怎么解决(回者有分)
- PL/SQL Developer 的中文教程哪有?,请知道的告以下!
- 求救,存储过程中调用SYS.Dba_Tab_Columns提示:......
- 如何设置oracle服务为手工启动
- 取oracle 存储过程 报错:当前提供程序不支持从单一执行返回多个记录集
- 一个循环的存储过程..
drop constraint aaaa ;
if exists (select 1from sysobjects
where id = '1'
and type = 'V')
drop view VW_aaa ; --直接drop
create table bbbb(
CID int identity,
RID int null
);--以上代码直接执行就OK了
CID int , -- 此处identity去掉,用考虑trigger+sequence实现
RID int null
);