I wrote this formula in order to prevent the 'para_miktari' column in the database from going negative when a withdrawal is made, but I received a syntax error. What is the error here?
Update account_details set para_miktari = para_miktari - 100if para_miktari < 0 then para_miktari = 0
Update account_details set para_miktari = para_miktari - 100if para_miktari < 0 then para_miktari = 0