0

我似乎不工作,因为当我使用参数化 SQL 查询时也会插入双引号。如何删除双引号?

cmd.Parameters.AddWithValue("@SORT", (rdbAscending.Checked) ? "ASC" : "DESC");

4

1 回答 1

0

Take a look at this post to see how you can use parameters in the ORDER BY clause.

于 2013-06-05T06:43:36.930 回答