这条SQL语句存在问题
SELECT * FROM supe_productitems s where s.catid in(getChildLst(12));通过这样的函数调用,可以取得值,但是上面那个sql语句怎么就查不到呢,是不是mysql不支持这样的调用啊
select getChildLst(12);
调用结果:'$',12,18,19,20我把结果放入一下sql语句就可以查得到啊
SELECT * FROM supe_productitems s where s.catid in('$',12,18,19,20);
我想我已经描述的很详细了,请帮忙找找问题啊,谢谢
SELECT * FROM supe_productitems s where s.catid in(getChildLst(12));通过这样的函数调用,可以取得值,但是上面那个sql语句怎么就查不到呢,是不是mysql不支持这样的调用啊
select getChildLst(12);
调用结果:'$',12,18,19,20我把结果放入一下sql语句就可以查得到啊
SELECT * FROM supe_productitems s where s.catid in('$',12,18,19,20);
我想我已经描述的很详细了,请帮忙找找问题啊,谢谢
2、SELECT * FROM supe_productitems s where find_in_set(s.catid,getChildLst(12))