cmd_str = string.Format(@"select * from (" + @"select top {0} * from (" + @"select top {1} * from ku where tx={2} order by qid asc)" + @"order by qid desc)" + @"order by qid asc;", this.page_size, end, qtype); OleDbDataReader odr = (new OleDbCommand(cmd_str, conn)).ExecuteReader();
在这一段代码里,我本来在from ku where tx={2}的部分写的是from tb_{2}的,这时候就没问题,但是我写成from ku where tx={2}之后就会报错:未将对象引用设置到对象的实例,指向这一行代码 string qtype = Request.Params["qtype"].ToString();
请问是哪里出问题了呢
幕布斯7119047
守着一只汪
相关分类