MySQLのテーブルデータのクエリ操作

1、単純なクエリ

select * from user;

2、NULL問い合わせ

select * from user where hobby is NULL and age is not NULL;

3、クエリで

select * from user where age in('22','23','24');

4、間およびクエリ

select * from user where age between 21 and 55;

5、またはクエリ

select * from user where age=22 or age=23

6、クエリによって順

select * from user order by age asc; 升序
select * from user order by age desc; 降序

7、

おすすめ

転載: www.cnblogs.com/feiqiangsheng/p/11441740.html