Answers for "sql best way to check if record exists the update or insert"

SQL
0

Check if value exisits update or insert sQL

IF EXISTS (SELECT * FROM Bookings WHERE FLightID = @Id)
BEGIN
    --UPDATE HERE
END
ELSE
BEGIN
   -- INSERT HERE
END
Posted by: Guest on January-18-2021

Code answers related to "sql best way to check if record exists the update or insert"

Code answers related to "SQL"

Browse Popular Code Answers by Language