【发布时间】:2015-04-13 23:47:23
【问题描述】:
我有桌子:
+-------+-------+------+----------+
| Name | Price | Url | Adress |
+-------+-------+------+----------+
| John | Smith | blah | London 1 |
+-------+-------+------+----------+
| John | Smith | blah | London 1 |
+-------+-------+------+----------+
| Jenny | Cole | blah | Prague 1 |
+-------+-------+------+----------+
我想得到这个:
+-------+------+------+----------+
| Jenny | Cole | blah | Prague 1 |
+-------+------+------+----------+
我试图用有创建sqlite命令,但没有结果..
【问题讨论】:
-
在 SELECT 之后添加关键字 DISTINCT。供您参考:w3schools.com/sql/sql_distinct.asp
标签: sql sqlite duplicates unique