NetBlog主题

C#,  SQL拼接查询
数据库

C#, SQL拼接查询

1169 0

private void NewMethod(){StringBuilder sqlStr = new StringBuilder();sqlStr.Append("select * from table1 ");List<string> wheres = new List<string>();List<SqlParameter> listParameters = new List<SqlParameter>();if (textBox1.…