我有2個數據庫具有相同的數據,但稍有不同的數據類型中的一些字段(例如SQLite的DB具有TEXT其中MySQL數據庫具有VARCHAR(50))的SQLite與MySQL - 相同的查詢 - 不同的結果 - 多個聯接
我運行以下查詢:
SELECT *
FROM audio a,
audiocodec ac,
fileproperties f,
transportstream t,
transportservice ts,
video v,
videocontent vct,
videoFrameRate vf,
videocodec vc
WHERE
f.PK_filename = a.filename
AND a.codec = ac.PK_audioCodecID
AND f.PK_filename = a.filename
AND f.PK_filename = t.filename
AND t.services = ts.PK_serviceID
AND f.PK_filename = v.filename
AND v.content = vct.PK_contentID
AND v.frameRate = vf.PK_frameRateID
AND v.codec = vc.PK_videoCodecID
完成在MySQL數據庫,我得到10個結果如預期。在SQLite中,有2個結果。 有什麼原因? (我知道這可能很難回答沒有指定數據類型和我對錶格所做的約束)
對不起格式化!我無法讓它工作。 – nf313743 2010-08-25 09:13:44