SELECT DISTINCT我有下面的語句,其工作只是正常:SQL表
select 'the file type is:', FileType
from table1
我想用DISTINCT
這個說法,是這樣的:
select 'the file type is:', distinct FileType
from table1
,但我得到的錯誤:
Incorrect syntax near the keyword 'distinct'.
我使用SQL Server 2008的
鮮明的屬於前面。它適用於整個結果集,而不是單個列。 – ryanyuyu