Search
 
SCRIPT & CODE EXAMPLE
 

SQL

myql insert from select

INSERT INTO table_name(column_list)
SELECT 
   select_list 
FROM 
   another_table
WHERE
   condition;
Comment

select insert in mysql

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

insert into select mysql

INSERT INTO dealer_service_rate (username, groupname, rate) 
SELECT username, groupname, rate FROM sub_dealer_service_rate 
WHERE username='rohaannet'
Comment

PREVIOUS NEXT
Code Example
Sql :: sql query rename table 
Sql :: mysql repeated values 
Sql :: WHERE not regex in SQL 
Sql :: sql cnvert bit to nvarchar 
Sql :: sql select min row 
Sql :: tinydb add table 
Sql :: oracle dba_dependencies 
Sql :: drop schema sql 
Sql :: postgres week number 
Sql :: sql view talbe columns 
Sql :: sql rtrim 
Sql :: sql delete column 
Sql :: sql find second highest salary employee 
Sql :: mysql count table rows 
Sql :: sql server current time without date 
Sql :: update in sql server table 
Sql :: sql select row with max date 
Sql :: How to backup databases using psql 
Sql :: mysql default value 
Sql :: eliminar ultimo carcacter mysql 
Sql :: oracle last modification in table 
Sql :: mysql select latest entry by time 
Sql :: creating sqeuence in oracle database 
Sql :: ERROR 1064 (42000) 
Sql :: oracle select json_table example 
Sql :: remove last characters in mysql 
Sql :: Grant privileges of databse to user 
Sql :: find a column by name in a sql server table 
Sql :: difference between outer join and inner join sql 
Sql :: mysql delete from where like 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =