# 简单查询 select
# 最简单的查询
select * from `user`
查询所有user的数据, select关键字代表是查询语句, *号代表查询所有字段, from关键字代表后面讲指定是哪个表
# 根据条件查询
select * from `user` where user_code="no1"
在查询语句中使用where条件可以指定过滤条件,只返回user_code="no1"的所有数据
# 指定返回字段
select user_code, age from `user` where user_code="no1"
在select关键字后面加上字段名(如果是多个用","分隔)可以指定返回字段,在上述语句中只会返回user_code和age字段
← 删除数据 查询条件 where →