我总是得到这个错误
“s”附近:语法错误
我的实现:
litecon.ConnectionString = "Data Source=" + AppAddress + "\\database\\mynew22.db;Version=3;UTF16Encoding=True";
从此方法收到错误 -> liteda.Fill(dt);
if (lang == "FaToMe")
liteda.SelectCommand = new SQLiteCommand("select * from mey where trans like '%" + str + "%'", litecon);
else
liteda.SelectCommand = new SQLiteCommand("select * from mey where pe like '%" + str + "%'", litecon);
DataTable dt = new DataTable();
liteda.Fill(dt); //liteda is SQLiteDataAdapter
此选择命令之间没有区别...
"select * from mey where pe like '%" + str + "%'"
或者
"select eng "
总是在“s”附近说:语法错误