我有一个SqlCommand
UPDATE table SET intColumn = intColumn + 1 WHERE id = @id
有没有办法获得intColumn
相同的新价值SqlCommand
?
就像是
UPDATE table
SET intColumn = intColumn + 1
WHERE id = @id;
SELECT intColumn
与ExecuteScalar
?
例如:
Dim x as int32 = sqlCommand.ExecuteScalar("sql")
x 是intColumn
?的新值