
sql
ld513508088
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sql中的3中连接查询
1、内连接 inner join 等价于 join INNER JOIN 关键字语法 SELECT column_name(s) FROM table_name1 INNER JOIN table_name2 ON table_name1.column_name=table_name2.column_name Persons" 表: Id_PLastNameFirstName原创 2012-04-06 14:48:08 · 459 阅读 · 0 评论 -
where 1=1作用
避免where和and直接相连转载 2012-07-26 16:34:38 · 332 阅读 · 0 评论 -
select * from tsys_opertor where password is null
select * from tsys_opertor where password is null; 别死在 select * from tsys_opertor where password =‘’;原创 2013-03-20 14:33:59 · 634 阅读 · 0 评论 -
group by
select后面跟的字段必须在group by 后面出现,聚集函数除外 问题:老师 我这么跟你说吧 我想查出来福建分公司 今年一月份的保单数据 不要重复的 答案:Select distinct i.mainindex,t.netname From imageindexnew i,TSYS_NET t where i.scandate>=to_date('2012-12-1 00:00:00原创 2013-03-06 16:17:08 · 899 阅读 · 0 评论