mysql聯表查詢 使用別名進行where比較

select gd_reg.*, tbl_menu_sub.menunames as gdnames FROM  (SELECT substring_index(gd_reg.gdname,',', -1) as gdnamedemo, gd_reg.* FROM gd_reg)  gd_reg,tbl_menu_sub WHERE gdnamedemo = tbl_menu_sub.id ORD
相關文章
相關標籤/搜索