Jump to content

using one SQL query


The Little Guy

Recommended Posts

I'm not sure of exactly what type of database you have but based on the calls I've received as a webhost tech rep, MsSQL - yes you can write multiple lines and run it in a single db call. If using MySQL 5 db engine, you can by using PHP's exec() function in the PHP5 object model.

 

 

With that, you should be able to pass one string for your queries. The only thing is you'll need command line root access in MySQL5. Be careful with coding this because the script will be prone to SQL injection hacks.. Yea, really really bad.

 

Not 100% if this helps you. Hopefully someone else can elaborate or point you in the right direction here.

Link to comment
https://forums.phpfreaks.com/topic/87593-using-one-sql-query/#findComment-448079
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.