Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql copy table with new name


        
            
        
     CREATE TABLE IF NOT EXISTS new_table LIKE existing_table;

INSERT new_table
SELECT * FROM existing_table;
Comment

mysql copy table to another table

CREATE TABLE new_table 
SELECT col1, col2, col3 
FROM
    existing_table
WHERE
    conditions;
Comment

copy a table mysql

CREATE TABLE employees_clone LIKE employees;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql remove duplicate 
Sql :: php insert null mysql 
Sql :: sql server check for value in multiple columns 
Sql :: grant create db postgres 
Sql :: what is relational database 
Sql :: could not assemble any primary key columns for mapped table sqlalchemy 
Sql :: not between mysql 
Sql :: postgresql port 5432 not open 
Sql :: rebuild index sql server 
Sql :: delete from select postgresql 
Sql :: t-sql add column 
Sql :: Drop check constraint in ms sql 
Sql :: alter table drop partition hive 
Sql :: how to put is null in where in clause 
Sql :: how to find table lock and row lock in mysql 
Sql :: delete record mysql 
Sql :: drop database mysql 
Sql :: what is unique key in sql 
Sql :: if sql 
Sql :: sql use with to get value counts and percentages 
Sql :: view acl table oracle 
Sql :: switch users mysql 
Sql :: mysqli_free_result 
Sql :: dns slave zone convert 
Sql :: full-text index mysql 
Sql :: Write the order of execution of all the SQL clauses and statements 
Sql :: delete from table where length sql 
Sql :: sql merge statement 
Sql :: postgresql create table add unique constraints 
Sql :: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =