Search
 
SCRIPT & CODE EXAMPLE
 

SQL

copy table sql server

-- Use SELECT ... INTO:
SELECT * INTO my_table_1 FROM my_table;
-- Structure only:
SELECT * INTO my_table_1 FROM my_table WHERE 1 <> 1;
Comment

sql copy table structure

CREATE TABLE newtableName LIKE anotherTable;
Comment

copy sql table

INSERT INTO newTable
SELECT * FROM oldTable
Comment

copy table in sql

CREATE TABLE employees_copy
 AS 
 SELECT first_name, last_name, email FROM employees WHERE 1=0;
Comment

PREVIOUS NEXT
Code Example
Sql :: table infromation in sql server 
Sql :: how to check even or odd in sql 
Sql :: insert postgres 
Sql :: t sql remove last character from string 
Sql :: rename table in mysql 
Sql :: mysql column start with string 
Sql :: sql delete stored procedure 
Sql :: Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates. 
Sql :: how to check mysql version in xampp 
Sql :: sql server user permissions and roles 
Sql :: oracle view ddl 
Sql :: sqlfiddle example tables 
Sql :: convert uniqueidentifier to varchar in sql 
Sql :: insert into table from another table mysql 
Sql :: mysql drop trigger 
Sql :: get current date data in mysql 
Sql :: v$session table or view does not exist 
Sql :: oracle replace 0 values 
Sql :: How to View column names of a table in SQL 
Sql :: get first 3 letters name in sql 
Sql :: mysql one week ago 
Sql :: date to string sql 
Sql :: psql: FATAL: Ident authentication failed for user "postgres" 
Sql :: oracle grant on all tables in schema 
Sql :: data types sql 
Sql :: where clause for child record apex 
Sql :: creer une base de donnée psql 
Sql :: sql to char function with date 
Sql :: purge undo tablespace usage 
Sql :: set column to not null mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =