nbsp; SqlConnection mySqlConnection = new SqlConnection("server=(local);Database=test;user id=sa;password="); SqlCommand mySqlCommand = new SqlCommand("up_GetTopicList", mySqlConnection); mySqlCommand.CommandType = CommandType.StoredProcedure; SqlParameter workParm; //搜索表字段,以","号分隔 workParm = mySqlCommand.Parameters.Add("@a_TableList", SqlDbType.VarChar, 200); mySqlCommand.Parameters["@a_TableList"].Value = "OFFERID,type,offertime"; //搜索表名 workParm = mySqlCommand.Parameters.Add("@a_TableName", SqlDbType.VarChar, 30); mySqlCommand.Parameters["@a_TableName"].Value = "offer"; //搜索条件,如"select * from aa where a=1 and b=2 and c=3"则条件为"where a=1 and b=2 and c=3" &nbs上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |