thinkphp5.1 where使用FIND_IN_SET

['','EXP',Db::raw("FIND_IN_SET($id,id)")]
SELECT * from C_PURCHASINGMASTERDATA where FIND_IN_SET(EKGRP,'C54,C02,C14,C60,C06,C61,C53,C51,C12,C08,C03,C07')
SELECT * from C_PURCHASINGMASTERDATA where EKGRP in ('C54','C02','C14','C60','C06','C61','C53','C51','C12','C08','C03','C07')

参考链接

你可能感兴趣的:(ThinkPHP,thinkphp)