0
在以下select語句中名字和中間名別名不出現。我希望這個列標題是大寫的。ALIAS中的大寫字母列名不起作用
SELECT dbo.Employee.Title AS SAL,
dbo.Employee.FirstName AS FIRSTNAME,
dbo.Employee.MiddleName AS MIDDLENAME
FROM dbo.Employee
在以下select語句中名字和中間名別名不出現。我希望這個列標題是大寫的。ALIAS中的大寫字母列名不起作用
SELECT dbo.Employee.Title AS SAL,
dbo.Employee.FirstName AS FIRSTNAME,
dbo.Employee.MiddleName AS MIDDLENAME
FROM dbo.Employee
我試過了,它對我來說工作正常。但是,下面是對您的SQL的一個建議更改,可能有所幫助。
SELECT Title AS [SAL],
FirstName AS [FIRSTNAME],
MiddleName AS [MIDDLENAME]
FROM dbo.Employee
然而,下面的查詢與SPACE工作在方括號中選擇標題它不工作,以及AS [SAL], FirstName AS [FIRSTNAME], MiddleName AS [MIDDLENAME] FROM dbo.Employee – shomaail
笏服務器您使用的,對我來說它的做工精細 –
我使用的版本9.00.5057.00(SQL Server 2005中) – shomaail