Posts: 101
Threads: 31
Joined: Sep 2013
Reputation:
0
As the title says, how can i make an update command to create the row, if the row with the specified ID does not exist?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Search for "INSERT … ON DUPLICATE KEY UPDATE"
This one either creates a new row with the given data, or updates the existing one. Exactly what youre looking for I guess.