發現一個對於級聯查詢,批量更新十分有用的sql

當時級聯是在Java代碼裏面寫的,可是忽然想經過sql的層面進行優化,能夠利用case whensql select 數據庫         case when type3.`category_id` != '' then type3.`category_id`              when type2.`category_id` != '' then type2.`category_id`
相關文章
相關標籤/搜索