20110418_批处理sql 语句的写法_oracle !!的使用
来源:互联网 发布:mac怎么显示图片尺寸 编辑:程序博客网 时间:2024/06/05 14:14
--查询
select 'drop view ' || object_name || ';'
from user_objects
where object_type='VIEW'
and status='INVALID';
--执行
2. 删除所有客户化触发器,即所有非“_T”结束的触发器;
备份触发器trigger_backup.sql
--查询
select 'DROP trigger ' || trigger_name || ';'
from user_triggers where
(trigger_name not like '%\_T' escape '\')
and (upper(trigger_name) not in (select upper(triggername) from maxtriggers)) ;
--执行
3、
原因:父设备存在的设备编码,在系统中不存在。
解决:删除此种数据
select 'update equipment e set e.parent=null where e.eqnum='||a.eqnum|| ';'
from equipment a
where not exists (select 1 from equipment b where a.parent = b.eqnum)
and a.parent is not null
- 20110418_批处理sql 语句的写法_oracle !!的使用
- sql语句的多种写法
- 标准Sql语句的写法
- SQL循环语句 的写法
- sql 语句 的一些写法
- MySQL的SQL语句写法
- 001_Oracle数据库、SQL语言的介绍
- ibatis里面sql语句中条件使用like的写法
- 几个批处理的写法
- 批处理的写法
- 代码编写注意_(IIF,SQL语句的WHERE条件写法)
- Java的SQL语句的写法小结
- oracle使用sql语句增加字段示例(sql删除字段语句)_oracle
- C#使用参数化和块语句来提高批处理SQL语句的执行效率
- 使用参数化和块语句来提高批处理SQL语句的执行效率
- 使用批处理执行sql 语句
- Oracle里的交叉SQL语句写法
- Oracle里的交叉SQL语句写法
- Ruby连Mysql数据库
- debug with dump at Visual Studio 2005
- UITableView UITableViewCell NSIndexPath
- 缓存几种形式
- Oracle DBlink
- 20110418_批处理sql 语句的写法_oracle !!的使用
- 规格模式 hql仿设计
- 黑马程序——关于函数(黑马我来了之三)
- List of Features with GUIDs
- android 镜像文件ramdisk system userdata
- 提高网站的访问速度、安全、扩展性方面问题
- androidFirstDay
- ajax
- windows workflow foundation (wf) 阶段总结