views:

34

answers:

2

I wanted to execute multiple queries in one. Is there a way to condense a bunch of queries into one big string and then execute it? Thanks in advance.

A: 

yes it's called a stored procedure - use 'em !!

f00
+3  A: 

Just use mysqli

It is the successor to the mysql functions and also exists in either procedural an object oriented implementation.

It can do multiple querys per one session and even return all different sets after the multi query. for more information read:

multi_query()

ITroubs