热门

最新

红包

立Flag

投票

同城

我的

发布
m0_70534124
霸霸学霸
4 年前
truem0_70534124

查询多个字段:
select xh,bj,xy,xb from test_student;
select 字段一,字段二,字段三,字段四,字段五 from test_student;

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
设置字段别名,在字段后面加as,加上自己设置的别名。select xh as '学号',xb as '性别' from test_studentselect 字段 as '添加的别名' from 数据表名如果要添加多个字段,那么在字段后面加逗号就可以了。select xh as '学号',xb as '性别' from test_student
立即登录