« PHP自作例外処理 | メイン | jquery セレクタ 前方一致、後方一致、部分一致 »
2016年11月08日
サブクエリでLIKE
$sql = "select " ." cate_id," ." cate_name," ." cate_rank," ." (select count(item_id) from item where item_del_flag = 2 and item_cate_list like '%_'||cate_id||'_%') as itemcnt" ." from catedat where。。。。。";
うーん 忘れてたわ;;
投稿者 muuming : 2016年11月08日 11:00