新手求助,现在做一个东西,需要将界面查询的条件进行解析成sql条件,比如传进来的
条件为(!ewew&!1)&!ce|( wewe|测试) 和查询字段为content,那么得到的解析语句为
(( content not like '%ewew%' and content not like '%1%') and ( content not like '%ce%') or ( content like '% wewe%' or content like '%测试%') ),请问各位
大牛有什么好的办法进行解决啊。
,
基本就是自己定义字符串格式,然后你自己再进行sql语句对应的拼接。
参考:http://download.csdn.net/download/liufei8282/1107125
http://www.iteye.com/topic/481407
需要一点编译原理的知识
content not like '%ewew%1%ce%' and content like '%wewe%测试%'