I have a script that creates a table and populates it with a bunch of records. I'm trying to cut down the number of MySQL calls as my host provider is complaining that my script is using more CPU resources than all the other sites combined on the server :p
I want to know if I can pass 2 SQL calls via a 1-liner seperated with ";" - a create and insert string...sorta like this:
"Create table BLAH (fields here);Insert into BLAH (fields) values (recorddata1), (recorddata2), ..., (recorddatan-1), (recorddatan);"
Does anyone know if this sort of SQL sting is supported AND (better yet if it does work) does anyone know if this sort of call would take more or less CPU cycles to process?
TIA
Sean Shrum
http://www.shrum.net