热门

最新

红包

立Flag

投票

同城

我的

发布
m0_70534124
霸霸学霸
4 年前
truem0_70534124

设置字段别名,在字段后面加as,加上自己设置的别名。
select xh as '学号',xb as '性别' from test_student
select 字段 as '添加的别名' from 数据表名
如果要添加多个字段,那么在字段后面加逗号就可以了。
select xh as '学号',xb as '性别' from test_student

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
背景图https://unsplash.com/explore
立即登录