Hi guys, I've had quite a few problems and know that I can get some good answers here!
Ok kinda 2 part question.
Part 1 I'm doing some really big updating of data, kind rejiging the tables mostly.
so the question is should I be using a mysql stored procedure or mysql/php like normal.
I'm currently on the stored producure frame of mind.
Reasons are
- a) Quicker
- b) No timeouts.
If anyone has any other opinions let me know.
P.S we are talking about a big heap of data. LIKE over 1.5 million rows
2nd part.
In stored procedures how do I make a query that will only return one row just give me that row. Also the query is a little dynamic so like
SET tag_query = concat('SELECT tag_id FROM tags WHERE tag = "',split_string_temp,'"');
Any clues?
I can't seem to find anything just easy about this language!
Thanks in advance for your help.
Richard