我在一个地方看到使用如下处理方:
$bf=array('/',"'",'[',']','%','&','_','(',')');
$af=array('//',"''",'/[','/]','/%','/&','/_','/(','/)');
$key=str_replace($bf,$af,$key);
$sql="select * from Mail_Summary where note like '%$what%' escape '/' ";但是不知在VC中如何实现,有人说在CppSqlite3中有关于转义字符处理的函数,请高人指点。
$bf=array('/',"'",'[',']','%','&','_','(',')');
$af=array('//',"''",'/[','/]','/%','/&','/_','/(','/)');
$key=str_replace($bf,$af,$key);
$sql="select * from Mail_Summary where note like '%$what%' escape '/' ";但是不知在VC中如何实现,有人说在CppSqlite3中有关于转义字符处理的函数,请高人指点。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货