0

在下面的 select 语句中firstnameMiddlename ALIAS 没有出现。我希望此列标题为大写。

SELECT  dbo.Employee.Title AS SAL,
        dbo.Employee.FirstName AS FIRSTNAME,
        dbo.Employee.MiddleName AS MIDDLENAME
FROM dbo.Employee 
4

2 回答 2

1

我已经尝试过了,它对我来说很好用。但是,这里建议对您的 SQL 进行更改,这可能会有所帮助。

SELECT Title AS [SAL],
       FirstName AS [FIRSTNAME],
       MiddleName AS [MIDDLENAME]
FROM dbo.Employee 
于 2014-02-06T14:27:59.110 回答
1

使用双引号适用于 PostgreSQL。

SELECT Title AS "SAL",
   FirstName AS "FIRSTNAME",
   MiddleName AS "MIDDLENAME"
FROM dbo.Employee 
于 2019-07-31T09:23:52.843 回答