Everything in one query
#3

You can use SQL's IN() construct, but you will need to create a loop to create the query in the first place, regardless. I might also add that a numeric primary key may be better.
PHP код:
UPDATE table SET food food 1 WHERE name IN('Killer''NoKiller'
Reply


Messages In This Thread
Everything in one query - by Banditukas - 02.08.2014, 21:36
Re: Everything in one query - by Blademaster680 - 02.08.2014, 21:59
Re: Everything in one query - by Vince - 02.08.2014, 23:59
Re: Everything in one query - by Banditukas - 03.08.2014, 06:59

Forum Jump:


Users browsing this thread: 1 Guest(s)