4
是否有可能在SQLite中的一個查詢中運行多個select語句?SQLite中一個查詢中的多個Select語句
如:
SELECT (
SELECT ChestGemEffects.Value,
Effect.Name
FROM ChestGemEffects
INNER JOIN Effect
ON ChestGemEffects.EffectId = Effect.Id
INNER JOIN Gems
ON ChestGemEffects.GemId = Gems.Id
WHERE (Gems.[Key] = 'SG1')
)
AS ChestEffects,
(
SELECT WeaponGemEffects.Value,
Effect.Name
FROM WeaponGemEffects
INNER JOIN Effect
ON WeaponGemEffects.EffectId = Effect.Id
INNER JOIN Gems
ON WeaponGemEffects.GemId = Gems.Id
WHERE (Gems.[Key] = 'SG1')
)
AS WeaponEffects,
(
SELECT OthersGemEffects.Value,
Effect.Name
FROM OthersGemEffects
INNER JOIN Effect
ON OthersGemEffects.EffectId = Effect.Id
INNER JOIN Gems
ON OthersGemEffects.GemId = Gems.Id
WHERE (Gems.[Key] = 'SG1')
)
AS OthersEffects;
它給我的錯誤:
「錯誤而執行查詢:只允許一個SELECT單個結果是表達式的一部分」
是我的表達有什麼問題,或者只是在SQLite中不支持?
感謝
感謝您的答覆,但我決定派遣一個不同的查詢每個選擇。 – TheGateKeeper 2013-03-07 09:56:35