当前位置:网站首页>12 SQL tips you may not know
12 SQL tips you may not know
2022-04-21 21:25:00 【InfoQ】
One 、 Some common SQL practice
select * from order where status!=0 and stauts!=1
select * from order where status in(2,3)
select * from order where desc like '%XX'
select * from order where desc like 'XX%'
select * from user where sex=1
select * from order where YEAR(date) < = '2020'
select * from order where date < = CURDATE()
select * from order where date < = '2020-01-01'
Two 、 It's not known SQL practice
select * from user where uid=?
select * from user where login_name=?
select * from user where name != 'shenjian'
select * from user where login_name=? and passwd=?
select * from user where passwd=? and login_name=?
select * from user where login_name=?
select * from user where passwd=?
3、 ... and 、 Small but useful SQL practice
select * from user where login_name=?
select * from user where login_name=? limit 1
select * from order where date < = CURDATE()
$curDate = date('Y-m-d');
$res = mysql_ query('select * from order where date < = $curDate');
select * from user where phone=13800001234
版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212123005407.html
边栏推荐
- 多租户积分系统功能清单
- 读书破万“卷”:国民阅读洞察2022
- Bailian4004 数字组合【递归+DP】
- Jmeter(十六) - 从入门到精通 - JMeter前置处理器(详解教程)
- 或许你不知道的12条SQL技巧
- 信息可视化大屏展板(附下载连接)
- 其它——Siege压力测试工具使用
- Program design TIANTI race l3-29 restore file (originally string hash optimized DFS)
- Principal component analysis R language implementation
- Red sun shooting range -- intranet penetration practice
猜你喜欢

Microsoft | multilingual molecular representation learning through comparative learning pre training

圆心科技再求上市:亏损金额飙升,研发费用率低于2%,如何突围?

Others - Analysis of redis and MySQL double write consistency scheme

Others - Introduction to Devops

Tongda OA form countersignature comment style

AI + great health is the right way to open the super robot?

Cross compile C program for rk3568 development board

841. 字符串哈希 (字符串哈希模板)

Others - interface test by postman

Kubernetes详解(五)——Kubernetes核心对象
随机推荐
父子进程间通信(一) —— 管道的作用原理 + 管道创建函数pipe
7-3 simple simulation of banking business queue | PTA
10 minute quick start RDS
培训管理系统操作说明
Manuel d'utilisation et de développement de la plate - forme de connexion unique pour l'amarrage du système d'AP de Tongda
Reflex WMS system has several similarities with SAP system
其它——Siege压力测试工具使用
其它——Redis与Mysql双写一致性方案解析
Information visualization large screen display board (with download connection)
好像还挺好玩的GAN重制版2——Keras搭建SRGAN平台进行图片超分辨率提升
Tongda OA system docking single sign on platform use and Development Manual
太原理工大学程序设计竞赛团队2022年特大丰收
Fundamentals of reinforcement learning (I): multi armed bandit
Neural network learning small record 56 -- the principle and function of batch normalization layer
flutter插件化,来看看这份超全面的《Android面试题及解析》
主成分分析R语言实现
使用Flutter给照片调个颜色滤镜动画
Red sun shooting range -- intranet penetration practice
shell根据分隔符截取字符串awk
Trie (dictionary tree)