Last active
          June 5, 2017 20:01 
        
      - 
      
 - 
        
Save luisfc/14c2e610ed890ecb2afcb20b2be9fd2b to your computer and use it in GitHub Desktop.  
    Copy data of one table to another table
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | INSERT INTO table2 SELECT * FROM table_origin; | |
| INSERT INTO table2 (field1, field2) SELECT table_origin.field1, table_origin.field2 FROM table_origin | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment