摘要:
--前提是主键id是字符串类型,存入的数据却是数字。如果是‘ffgh’这种英文字母的话,是无法转换排序的。 select * from user_info ORDER BY cast(id AS INT) desc 阅读全文
posted @ 2020-08-11 11:11
万里哥
阅读(634)
评论(0)
推荐(0)
摘要:
方法一: select * from project_base_info where END_ACCEPTANCE_TIME between to_date('2021-01-01','yyyy-mm-dd') and to_date('2021-04-30','yyyy-mm-dd') 方法二: 阅读全文
posted @ 2020-08-11 10:56
万里哥
阅读(1283)
评论(0)
推荐(0)
摘要:
--查询地址不在上海市,江苏市,北京市的学生数据 select * from student where areaname not in('上海市','江苏市','北京市') -- 在嵌套查询语句中的使用 SELECT u.id FROM user u WHERE u.ID not in (SELE 阅读全文
posted @ 2020-08-11 10:53
万里哥
阅读(1189)
评论(0)
推荐(0)
摘要:
select distinct data_status from project_base_info 阅读全文
posted @ 2020-08-11 10:04
万里哥
阅读(413)
评论(0)
推荐(0)

浙公网安备 33010602011771号