2

I want to run the multiple queries in single statement how to do this.

4
  • 1
    inserts,selects,updates,replaces what kind of query's? Commented Apr 7, 2011 at 12:17
  • What kind of multiple queries? Multiple inserts in the same table: possible. Combination of different type of queries: not possible within php. Commented Apr 7, 2011 at 12:18
  • @Lawrence and @gnur As the question titled He is asking for update query Commented Apr 7, 2011 at 12:33
  • Possible duplicate of Multiple Updates in MySQL Commented Feb 3, 2016 at 8:49

2 Answers 2

4

you will have to use mysqli instead of mysql.

Please refer to the following

http://php.net/manual/en/book.mysqli.php

http://php.net/manual/en/mysqli.multi-query.php

Sign up to request clarification or add additional context in comments.

Comments

4

You can run multiple queries using mysqli::multi_query()

as the mysql_ function family does not provide feature to execute multiple queries in once.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.