- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 写sql 用EXISTS 代替 in
写了一个sql,需要用到包含的关系,发现执行有些慢,于是采用 EXISTS 代替 in,发现执行速度快了很多,看来以后还是应该减少in的使用SELECT userid FROM ClientUserInfo WHERE userid not in (select UserId from AllNetSafeUser12 )共有3k多数据,执行4秒SELECT userid F
2009-01-05 17:34:00 2378
原创 删除重复数据 方法
sql如下: create table AllNetCompServUser( userid varchar(50), --用户名 userinfo varchar(100), --用户信息 userorderid int IDENTITY(1,1) --唯一标识)go insert into AllNetCompServUser(userid,
2009-01-05 13:16:00 768
原创 DB2 SQLSTATE 类代码
代码 含义 要获得子代码,参阅...00 完全成功完成 表 301 警告 表 402 无数据 表 507 动态 SQL 错误 表 608 连接异常 表 709 触发操作异常 表 80A 功能部件不受支持 表 90D 目标类型规范无效 表 100F 无效标记 表 110K RESIGNAL 语句无效 表 120N SQL/XML 映射错误 表 1320 找不到 CASE 语句的条件 表 1521
2009-01-05 09:38:00 2956
O'Reilly radius
2012-01-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人