Search
 
SCRIPT & CODE EXAMPLE
 

SQL

create new table from existing table with data in sql server

CREATE TABLE florist 
AS SELECT
  *
FROM product
WHERE category = ’flower’;
Comment

create new table from existing table with data in sql server

INSERT INTO new_table
SELECT * FROM old_table
Comment

PREVIOUS NEXT
Code Example
Sql :: SQL Syntax of LEFT JOIN 
Sql :: how to print sql query 
Sql :: oracle create table primary key 
Sql :: reset keys in sql 
Sql :: multiple count with where clause sql 
Sql :: oracle dynamic select into 
Sql :: SQL Subquery and JOIN 
Sql :: oracle last modification in table 
Sql :: mac django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? 
Sql :: sql left join 
Sql :: calculate date and convert to yearsmysql 
Sql :: delete * from where id = 1; 
Sql :: sql server today minus n 
Sql :: using SQL in rails migration 
Sql :: sql find leading space 
Sql :: replace tab in sql 
Sql :: SQL Server query to get data for a particular date and time 
Sql :: sql unique constraint 
Sql :: SQL Modify Column in a Table -SQL Server 
Sql :: sql statement to change a field value 
Sql :: new uniqueidentifier in sql 
Sql :: sql server: how to concatenate column data using comma 
Sql :: delete all duplicate rows keep the latest except for one in mysql 
Sql :: multiple order by sql 
Sql :: case statement in select query in sql 
Sql :: inner join mysql 
Sql :: sql server select record with max id 
Sql :: multiple row primary key 
Sql :: isnull in sqlite 
Sql :: sql change column name based on value 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =