为什么不能指定列名? TheoryHour 是 int 型解决方法

为什么不能指定列名? TheoryHour 是 int 型为什么不能指定列名?TheoryHour是int型selectTheoryHourTheory

为什么不能指定列名? TheoryHour 是 int 型
为什么不能指定列名?   TheoryHour   是   int   型

select     TheoryHour   =   TheoryHour/10     理论工时   from   Course  

出错

[解决办法]
select TheoryHour/10 理论工时 from Course

or:
select 理论工时=TheoryHour/10 from Course

or:
select TheoryHour/10 as 理论工时 from Course

[解决办法]
select TheoryHour/10 理论工时 from Course
[解决办法]
select TheoryHour/10 as 理论工时 from Course
[解决办法]
如果别名不符合标识符规则,需要加[],如:别名中带空格

select TheoryHour/10 as [理 论 工 时] from Course