[MySql] How to make UPDATE to create a row, instead of doing nothing if the row doesnt exist.
#4

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.
Reply


Messages In This Thread
[MySql] How to make UPDATE to create a row, instead of doing nothing if the row doesnt exist. - by Unri - 01.10.2013, 20:40
Re: [MySql] How to make UPDATE to create a row, instead of doing nothing if the row doesnt exist. - by overflow - 01.10.2013, 20:54
Re: [MySql] How to make UPDATE to create a row, instead of doing nothing if the row doesnt exist. - by Unri - 01.10.2013, 21:17
Re: [MySql] How to make UPDATE to create a row, instead of doing nothing if the row doesnt exist. - by Mauzen - 01.10.2013, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)