sqlite3 按编辑框中的输入值查找数据库相符内容

来源:互联网 发布:胡夫金字塔的结构数据 编辑:程序博客网 时间:2024/06/16 07:07

select * from table where name=' "+m_data+" ';


注释:当查询数据库时,如果不能将数据库中的数据查询出来显示在ListControl中,有可能是查询语句出现错误,特别适当条件为定值时候如:‘name’;


select & from table where value like '%str% ';

返回表中包含str的信息;

如果包含编辑框数据可以:

(select * from table where name like '%")+m_str+_T(" %' order by time DESC ");

0 0
原创粉丝点击