Search
 
SCRIPT & CODE EXAMPLE
 

SQL

SQL INSERT INTO SELECT Statement

INSERT INTO user_profile (
    name, 
    client_id, 
    email_id,
    mobile,
    create_date,
    last_modified
)
SELECT 
    name, 
    client_id, 
    email_id,
    mobile,
    now(),
    now()
FROM 
    user_profile
WHERE 
    id = 106
Comment

sql server insert into select

INSERT INTO sales.addresses (street, city, state, zip_code) 
SELECT
    street,
    city,
    state,
    zip_code
FROM
    sales.customers
ORDER BY
    first_name,
    last_name; 
Comment

SQL Server INSERT INTO SELECT

 INSERT INTO table1
 SELECT col1, col2 , col3 FROM table2
 WHERE your condition;
Comment

SQL Server INSERT INTO SELECT

 INSERT INTO salesTransaction_History
 SELECT * FROM salesTransaction
 WHERE item_Number='Salt-1';
Comment

SQL INSERT INTO SELECT Statement

INSERT INTO OldCustomers
SELECT *
FROM Customers;
Comment

PREVIOUS NEXT
Code Example
Sql :: how to force truncate a table in mysql 
Sql :: generate sql from specific migration ef core 
Sql :: oracle pl/sql package 
Sql :: how to use timestampdiff in a table in sql 
Sql :: EnvironmentError: mysql_config not found 
Sql :: sql primary key constraint 
Sql :: initcap in sql 
Sql :: how to start my sql server on mac 
Sql :: install mysql in ubuntu 18.04 
Sql :: copy column from one table to another without column duplicate postgres 
Sql :: php5-mysql has no installation candidate 
Sql :: best sql collation 
Sql :: mariadb case switch 
Sql :: mysql show foreign keys column 
Sql :: get stored procedure text sql server 
Sql :: alter boolean column postgresql 
Sql :: oracle drop type if exists 
Sql :: dump multiple tables mysql 
Sql :: what is denormalization in sql 
Sql :: difference between in and between in sql 
Sql :: sql drop all tables 
Sql :: sql rename column in select 
Sql :: sql nombre mes mysql 
Sql :: create postgres role and database for bitbucket 
Sql :: how to delete python anywhere mysql database 
Sql :: psql command not found windows 
Sql :: limit and offset in stored procedure mssql 
Sql :: oracle create index if not exists 
Sql :: make selected text uppercase mssql 
Sql :: sqlalchemy existing db file 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =