我知道我们可以Select * from abc where xyz=@xyz
使用SqlCommand.Parameters.AddWithValue("@xyz",xyz)
C# 代码添加查询参数。但是是否可以更改顶行参数以进行类似的Select TOP @rows * from abc where xyz=@xyz
查询SqlCommand.Parameters.AddWithValue("@rows",32)
?
因为每当我尝试它时,它都会向我显示这个异常:Incorrect syntax near '@rows'.