string s1="select * from news where username="+TextBox1.Text+""; 列名 ✀username1✀ 无效.

2025-03-24 00:41:29
推荐回答(1个)
回答1:

修改为:
string s1="select * from news where username='"+TextBox1.Text+"'";