Hello Below query give me error. What can be problem ? @_borc is 100 and @x_id is 6 UPDATE x_carikarti SET x_bakiye = CASE WHEN x_borcalacak = 'B' THEN x_bakiye - @x_borc WHEN x_borcalacak = 'A' THEN x_bakiye + @x_borc END WHERE (x_id = @x_id)
The error message would indicate what the problem is. The syntax looks fine. If you post the error message people on this forum would be able to offer more concrete advice.