数据库重复问题
2016-03-25 14:03
274 查看
判断日期是否有效 update Sheet1$ set date=null where Isdate(date)=0 select * from sheet1 where 社区网格 is null or 楼栋名称 is null or 单元 is null or 房间号 is null 身份证号码 select * from sheet1 where isdate(substring([身份证号],7,4)+'-'+substring([身份证号],11,2)+'-'+substring([身份证号],13,2))<>1 是否有重复 select * from ( SELECT * FROM sheet1 WHERE [身份证号] in ( select [身份证号] from sheet1 group by [身份证号] having count(*)>1 ) ) as tb order by tb.[身份证号]
相关文章推荐
- 【慕课笔记】1-6 初涉MYSQL—MYSQL常用命令以及语法规范
- 如何对数据库进行增删改查
- sql server实现分页
- mysql字符编码集(乱码)问题解决
- 【慕课笔记】1-5 初涉MYSQL—修改MYSQL提示符
- SQLite学习手册(数据库和事务)
- MySQL权限篇之DROP
- Redis持久化————AOF与RDB模式
- redis源码阅读
- mysql 免安装指南
- 【慕课笔记】1-4 初涉MYSQL—登录与退出
- Initialization error Oracle Client not properly installed
- Oracle ref cursor使用
- Sql server存储过程中常见游标循环用法
- 安装mysql,虽成功启动mysqld服务,但进不了mysql并报错
- MySQL权限篇之DELETE及SELECT
- 如何查看mysql当前的连接数,如何停止某个连接
- iOS数据存储--SQLite数据库
- 如何快速查看SQL Server版本信息?
- 通过IntentService读取收获地址省市县信息存入数据库