我有兩個表:加入兩個表並顯示它來自
ID, actor, description....
FK_ID, other_description...
我現在將加入這兩個表,讓我有以下結果:
ID|actor|description|other_description
1, Bud Spencer, >MainDescription<, null
1, Bud Spencer, null, Other_Description1
1, Bud Spencer, null, Other_Description2
.....
我怎樣才能寫我的查詢?
謝謝。
您是否嘗試過使用'UNION'和'JOIN'? –
您希望MainDescription只出現在每個ID的第一行,是否正確?在每個後續的行上它應該是空的?只顯示第二行之後的Other_Description? – ADyson