在下面的 select 语句中firstname和Middlename ALIAS 没有出现。我希望此列标题为大写。
SELECT dbo.Employee.Title AS SAL,
dbo.Employee.FirstName AS FIRSTNAME,
dbo.Employee.MiddleName AS MIDDLENAME
FROM dbo.Employee
在下面的 select 语句中firstname和Middlename 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
使用双引号适用于 PostgreSQL。
SELECT Title AS "SAL",
FirstName AS "FIRSTNAME",
MiddleName AS "MIDDLENAME"
FROM dbo.Employee