我有2個表的MySQL在比較一組中2個表
table A table B
pid date1 pid date 2
a 10-12-2014 a 10-12-2014
a 11-13-2014 a 11-22-2011
a 8-9-2007
a 7-6-2006
b 9-10-2011 b 8-8-2011
b 9-5-2004
b 8-2-2005
c 8-8-2011 c 9-10-2001
c 8-8-2011
我想檢查特定日期1在日期2特定PID
爲前爲pid
一個的條目date1 10-12-2014
退出日期2 10-12-2014
。
難道你不需要只在pod和日期上進行內部連接嗎? – kiks73