连接ACCESS数据库(查找中用到通配符)的问题
我连接的是ACCESS数据库其中一段代码
OleDbConnection myConnection = new OleDbConnection(ConfigurationSettings.AppSettings["strConn"]);
OleDbCommand myCommend = new OleDbCommand("select * from TsTPpr_1 where Text_Id=‘ITT001DB020202C1ITT001DB020202C1’",myConnection);
myConnection.Open();
----------可以正常显示记录。
OleDbConnection myConnection = new OleDbConnection(ConfigurationSettings.AppSettings["strConn"]);
OleDbCommand myCommend = new OleDbCommand("select * from TsTPpr_1 where Text_Id like‘ITT001*’",myConnection);
myConnection.Open();
------------------这里用到通配符*则没有记录。