sql server 给字段取别名

2025-05-01 23:50:48
推荐回答(3个)
回答1:

select stud_id 学号,stud_name as 姓名,stud_birthday as '出生日期' 
from stud_info where stud_gender = '男'

最后一个写错了,应该是 as '出生日期'

回答2:

应该是别名=列名,即 '出生日期' =stud_birthday

回答3:

stud_birthday = '出生日期' as 别名