在asp.net中这条语句有对什么,不对的话怎么写啊?谢谢啦!

来源:百度知道 编辑:UC知道 时间:2024/06/03 11:11:53
OleDbDataAdapter dda = new OleDbDataAdapter("select * from [trim] where vipsign='" + this.TextBox1.Text + "'||tel='" + this.TextBox1.Text + "'||pid='" + this.TextBox1.Text + "'||num='" + this.TextBox1.Text + "'", conn);

这里面不能用逻辑计算符...不能用 ||
把||改为 "or" ,改改就行了.

("select * from [trim] where vipsign='" + this.TextBox1.Text + "'or tel='" + this.TextBox1.Text + "' or pid='" + this.TextBox1.Text + "' or num='" + this.TextBox1.Text + "'",conn);

||是什么意思啊