I have a table with large amount of data and want to take too much inquiry for checking the existence of a specific row. If that row exist then increase value of inquiry_count column. We have tow different approach to do this please tell me which one is better.
first : we can select that row and check it with "Exists" function, If that row exists then Execute update command to increase inquiry_count column.
Second: we can only execute update command. if the number of affected rows are more than 0 then that row exists.