0
我有兩個表sql查詢依賴列
一個是關鍵字[id |關鍵字|賬戶] k ,一個是templateKeywordLink [templateId | keywordId]漳州燦坤
我想要做的就是從關鍵字表(其中帳戶= 1)
我還想添加一個名爲選擇另一列所有關鍵字的結果集。
if k.id in (select templateId from templateKeywordLink)
then then selected should contain「selected」。否則它應該爲空
我想知道最佳查詢是做什麼的?