I want to run the multiple queries in single statement how to do this.
2 Answers
you will have to use mysqli instead of mysql.
Please refer to the following
Comments
You can run multiple queries using mysqli::multi_query()
as the mysql_ function family does not provide feature to execute multiple queries in once.

updatequery