从SqlCommand对象获取生成的SQL语句?
Using cmd As SqlCommand = Connection.CreateCommand
cmd.CommandText = "UPDATE someTable SET Value = @Value"
cmd.CommandText &= " WHERE Id = @Id"
cmd.Parameters.AddWithValue("@Id", 1234)
cmd.Parameters.AddWithValue("@Value", "myValue")
cmd.ExecuteNonQueryEnd UsingUPDATE someTable SET Value = "myValue" WHERE Id = 1234
qq_遁去的一_1
RISEBY
四季花海
随时随地看视频慕课网APP