I want to run the multiple queries in single statement how to do this.
            Asked
            
        
        
            Active
            
        
            Viewed 5,177 times
        
    2
            
            
        - 
                    1inserts,selects,updates,replaces what kind of query's? – Lawrence Cherone Apr 07 '11 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. – gnur Apr 07 '11 at 12:18
- 
                    @Lawrence and @gnur As the question titled He is asking for `update` query – Shakti Singh Apr 07 '11 at 12:33
- 
                    Possible duplicate of [Multiple Updates in MySQL](http://stackoverflow.com/questions/3432/multiple-updates-in-mysql) – Kristijan Iliev Feb 03 '16 at 08:49
2 Answers
4
            you will have to use mysqli instead of mysql.
Please refer to the following
 
    
    
        Oliver M Grech
        
- 3,071
- 1
- 21
- 36
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.
 
    
    
        Shakti Singh
        
- 84,385
- 21
- 134
- 153
