SELECT * FROM `student`where userName like '杨_';
SELECT * FROM `student`where userName like '杨%';
SELECT * FROM `student`where pwd is null ;
SELECT * FROM `student`where pwd is not null ;
SELECT * FROM `student`where age between 20 and 30;
SELECT * FROM `student`where createDate between '2024-02-21 00:00:00'and '2024-02-25 00:00:00';
SELECT * FROM `student`where userName in ('赵灵儿','杨过','龙姑娘');
MySQL 常用语句查询语句
最新推荐文章于 2024-09-15 20:24:46 发布
文章详细列举了使用SQL查询从`student`表中筛选特定用户(如以杨_开头,不为空或非空密码,年龄在20至30岁,以及特定用户名)的方法,展示了基本的数据库操作技巧。
摘要由CSDN通过智能技术生成