我认为这些是同义的,但我在Microsoft SQL中写了以下内容:
Select Unique col from
(select col from table1 union select col from table2) alias
Run Code Online (Sandbox Code Playgroud)
它失败了.把它改成
Select Distinct col from
(select col from table1 union select col from table2) alias
Run Code Online (Sandbox Code Playgroud)
固定它.谁能解释一下?