常写的一些sql语句
来源:互联网 发布:十禾淘宝运营怎么样 编辑:程序博客网 时间:2024/06/03 00:14
select b.entpName,b.innerID,a._id from android_insRecord a,android_pucEntp b where 1=1 and b.innerID in(select c.innerID from android_govTroubleRegCheck c where c.innerID in(select d.innerID from android_govCheckInspectCheckContent d where d.troubleType=1)) and b.entpName like '%%' order by a.savetime desc
//提出重复
//select distinct _id,innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName from
select distinct _id,innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName from(select b._id,a._id,a.innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName,b.checkUnit,c._id troubleId,a.entpTypeId,a.checkItemId,c.improveStep,c.improveUnit,c.finishDate,c.closeFlag,c.checkDate from android_govCheckInspectCheckContent a ,android_insRecord b,android_govtroubleregcheck c where a.inspectID=b._ID and a._id=c.inspectId and a.troubleType=1 order by b.savetime desc )a
//提出重复
//select distinct _id,innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName from
select distinct _id,innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName from(select b._id,a._id,a.innerId,(select entpName From android_pucEntp c where c.innerID=a.innerId) entpName,b.checkUnit,c._id troubleId,a.entpTypeId,a.checkItemId,c.improveStep,c.improveUnit,c.finishDate,c.closeFlag,c.checkDate from android_govCheckInspectCheckContent a ,android_insRecord b,android_govtroubleregcheck c where a.inspectID=b._ID and a._id=c.inspectId and a.troubleType=1 order by b.savetime desc )a
0 0
- 常写的一些sql语句
- 记录自己常写的一些sql语句
- 记录自己常写的一些sql语句
- JAVA工程师常考的SQL语句
- sql语句常用语
- sql的一些语句
- 自己写的sql语句
- 写sql语句的思路
- 写sql语句的经验之谈
- 写sql语句的经验之谈
- 随便写的sql语句
- 写高效的SQL语句
- 在SAP ABAP编程序常的一些语句
- SQL语句先前写的时候,很容易把一些特殊的用法忘记,特此整理了一下SQL语句操作,方便写SQL时方便一点
- thinkphp 常看tp拼接的sql语句
- Mysql中的常使用的几个sql语句
- 一些有用的SQL语句
- SQL 的一些核心语句
- Android系统中传感器相关的简介
- android批量插入数据(使用事务)
- Eclipse手动集成svn插件以及svn403错误解决办法
- android新手上路(一)---字符串为空的检测
- 记录自己常写的一些sql语句
- 常写的一些sql语句
- 一些sql语句
- 控制form表单提交
- android新手上路(二)--- 关于findViewById 返回为空
- hdu 3451——Beat drop
- 保持 Flash Player 背景運作 FPS 技巧
- 10.9 Generate Parentheses
- 网页上嵌入Flash播放器(2)
- 带三角形的pop