#12004/7/27 13:40:07
利用连表语句如下,当它会重复数据表motif中的所有字段,
SELECT *
FROM sore,motif
ORDER BY sore_px,motif_date DESC
而且我想让表motif中的sore_id字段=表sore中的sore_id
我就改为:
SELECT *
FROM sore,motif
WHERE motif.sore_id=sore.sore_id
ORDER BY sore_px,motif_date DESC
写完了点击测试,提示:表达示中的类型不匹配
另外如何让表motif不重复显示呢?而且显示的数据是对应sore_id的,如果有多个不同sore_id就显示多个~