这是小弟用C#操作PDA中的数据库写的删表操作,运行后报错
There was an error parsing the query.[Token line number=1,Token line offset=12,Token in error =Statistics]
代码如下:
//删除本地数据库中StaffStatistics表
SqlCeConnection ConnCe = new SqlCeConnection();
ConnCe.ConnectionString = "Data Source=\\RFmobile.sdf; Password =''";
ConnCe.Open();
string StrSql = "drop table Statistics";
SqlCeCommand CmdCe = new SqlCeCommand(StrSql, ConnCe);
CmdCe.ExecuteNonQuery();
ConnCe.Close();