oracle判断查询结果是否为空
2016-10-11 12:54
966 查看
create table test1023(id int); --创建测试表 test1023 declare cnt int; begin select count(*) into cnt from test1023; if cnt=0 then insert into test1023 values('1'); commit; --触发器中 需要将这句删除; end if; end;
参:http://zhidao.baidu.com/link?url=WruRf6fvsDrqjIuESnzcwi0CVDT5b3lT8s1rncvbTCdvoOiKY9CcFa1BPoJw_IEyRi4kJWfhXJ9v4XoUAi4tl4fw7_M1dsVLakV2rcQKLna
相关文章推荐
- oracle 判断查询结果是否存在
- Django的ORM中如何判断查询结果是否为空,判断django中的orm为空
- 如何判断一个查询的结果是否为空
- 判断一个查询的结果是否为空
- php 判断查询结果是否为空
- sql用1来表示查询结果是否为空 & 判断表是否存在简易方法
- php如何判断SQL语句的查询结果是否为空?
- oracle的查询语句中判断字符是否是全数字
- Oracle根据查询结果去判断要不要再查找其他表
- 判断查询结果是否为空
- oracle 建表、最大ID、判断表是否已存在、字段的查询以及增删改、插入与修改语句
- 如何判断一个查询的结果是否为空
- access判断查询的结果是否为空,等同于SQL ISNULL()
- oracle查询,依据一个字段的值,去判断是否查另一个值--有道笔记整理
- 数据库编程应注意判断查询结果是否为null
- oracle使用LEFT JOIN关联产生的问题在查询结果中使用CASE WHEN 无法判断
- SQL判断查询结果是否存在EXISTS
- 关于数据库查询结果ResultSet判断是否为空的小知识点
- 在PL/SQL中怎样判断查询的结果是否为空
- MySQL的JDBC判断查询结果是否为空以及获取查询结果行数的方法