我有过
id | start | end
-------------------------------------
213 | 2014-03-20 | 2014-04-01
999 | 2014-03-20 | 2014-04-01
213 | 2012-02-10 | 2013-02-23表是用复合键(id, start, end)定义的。
我需要阅读所有现有的开始和结束组合。
例如:
res['start'] | res['end']
-------------------------
2014-03-20 | 2014-04-01
2013-02-10 | 2013-02-23发布于 2014-07-21 08:32:14
你可能想要这个
SELECT DISTINCT `start`,`end` FROM table_name;https://stackoverflow.com/questions/24860708
复制相似问题