数据表单里某个字段名称中含空格,SQL怎么写命令?

2025-02-24 23:24:07
推荐回答(3个)
回答1:

select [first name], [last name] from student
建议 字段名不要有空格,不然很麻烦的

回答2:

select a.firstname,a.lastname from student as a

a.点出来什么,你就用什么,就没问题了。

回答3:

select 'first name', 'last name' from student;