随笔分类 -  SQL

查询存在一个表而不在另一个表中的数据记录
摘要:select itcode from User_info where itcode not in (select itcode from User_system) 阅读全文

posted @ 2018-04-19 16:53 HopeWu 阅读(133) 评论(0) 推荐(0)

按一列筛选,不显示重复行 & 统计重复记录
摘要:select distinct a from 表 Select an_user,Count(*) From Qlikreport where QuestionItem in ('Neutral') Group By an_user Having Count(*) > 1 阅读全文

posted @ 2018-04-19 05:57 HopeWu 阅读(177) 评论(0) 推荐(0)

truncate table
摘要:truncate table user_info 阅读全文

posted @ 2018-04-15 19:19 HopeWu 阅读(118) 评论(0) 推荐(0)

SQL 中字母大小写转换
摘要:大写字母改成小写字母 update 表名 set 字段名a= Lower(字段a) 小写字母改成大写字母 update 表名 set 字段名a= upper(字段a) 阅读全文

posted @ 2018-04-13 17:28 HopeWu 阅读(10847) 评论(0) 推荐(0)

导航