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

You have to check whether the row exists or not. If it doesn't create a new row (INSERT INTO) otherwise just update it (UPDATE). The update statement itself can't create new rows.
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)