我试图一次将200行或少于200行插入到不同的表和数据库中,但这给了我一个例外
9900011111数据库未打开
var con = new SQLiteConnection("Data Source=" + finalDbFileName + ";Version=3;")
con.open();
str1 = str1 + ";insert into `" + 99504 + "` (" + columns + ") " + "select '" + 9950478744 + "','" + name + "','" + address + "','" + date.ToString() + "','" + circle + "','" + mobileOperator + "','" + 6587458 + "','" + idpr + "','" + simType + "' where not exists " + "(select number,full_name,address,circle,operator,SimType from `" + numDetails.Number.ToString().Substring(0, 5) + "`" + "where (number='" + numDetails.Number + "' AND full_name='" + name + "' AND address='" + address + "' AND circle='" + circle + "' AND operator='" + mobileOperator + "' AND Alterno='" + 6587458 + "' AND IDProof='" + idpr + "' AND SimType='" + simType + "' )) ";
str1 = str1.Substring(1);
SQLiteCommand cmd1 = new SQLiteCommand(str1, con);
cmd1.ExecuteNonQuery();
str1 = "";
以上是我的查询,一次只能插入200行,在此仅显示单个查询 但是str1同样包含200个以;结尾的查询。
除了9900011111是数字外,我的表格名称是数字的前五位。
如何将200行插入不同的SQLite数据库和表中,请帮助我?