可以执行INSERT等语句。
如果你想对不同数据库操作,建议将这个程序改一下,
 - if (tb.Length != 1)
- {
- ret.Add(new TypedValue((int)LispDataType.Nil));
- return ret;
- }
这一段改成
 - if (tb.Length > 0)
- {
- string database = tb[0].Value.ToString();
- // 其它代码
- }
后面的ExecuteDataTable,ExecuteNonQuery方法里的连接字符串根据这个database来实现 |