《SQL必知必会》翻译版关于select distinct记一个坑

版权声明: https://blog.csdn.net/miaoxiaocheng/article/details/88843420

中文版里面说,

不能部分使用 DISTINCT DISTINCT 关键字应用于所有列而
不仅是前置它的列。如果给出 SELECT DISTINCT vend_id,
prod_price ,除非指定的两个列都 不同,否则所有行都将被
检索出来。

 作者在英文书里说

 all rows would be retrieved unless both of the specified columns were distinct

( both of the specified columns有区别)

中文版那个 翻译得很不准确

猜你喜欢

转载自blog.csdn.net/miaoxiaocheng/article/details/88843420