更新操作&*/更新数据,被更新的数据会被自动转换和过滤,例如:/$data=array('name'=>$name,'email'=>$email,'url'=>$url);where="author_id=1 AND status='active';this->db->update_string('table_name',$data,$where);选择数据&*/获取表...
首先说明这个脚本很low,目前水平有限,只能实现使用固定的语法对数据进行增删改查。需求 a.可进行模糊查询,语法至少支持下面3种:select name,age from staff_table where age>22 select*from staff_table where dept="IT"select*from ...