Code
SQL1 = "SELECT R2,R3,R4,R5 FROM SHCD_20071106 where R2=:id2 OR R3=:id2";
Database db = DatabaseFactory.CreateDatabase();
DbCommand dbCommand =
db.GetSqlStringCommand(SQL1);
db.AddInParameter(dbCommand,"id2", DbType.String, _tel_num);
return db.ExecuteDataSet(dbCommand);
不使用 db.AddInParameter就很快!用了要慢上10秒以上。 为什么?