查询所有列
语法
SELECT 字段名1, 字段名2, ... FROM 表名;
例子
select id, user_name, password, t_name, age, email from tb_user;
用 * 匹配
语法
select * from 表名;
例子
select * from tb_user;
查询指定列
语法
SELECT 字段名1, 字段名2, ... FROM 表名;
例子
select id, user_name, age from tb_user;
