SQL INSERT but increment ID if exist without having to do separate SELECT query
SQL INSERT but increment ID if exist without having to do separate SELECT query Question: I have a table with Primary Key on two columns: ID (Users ID) and SQ (Sequence, this starts at 1 and increments +1 for each ID). A user should not have multiple instances of the same sequence #. Here is …