Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to insert same table data using mysql query

Use INSERT ... SELECT:

insert into your_table (c1, c2, ...)
select c1, c2, ...
from your_table
where id = 1
Comment

PREVIOUS NEXT
Code Example
::  
::  
Sql ::  
::  
::  
::  
::  
::  
::  
::  
::  
:: set value to null postgres 
::  
::  
::  
::  
::  
::  
::  
::  
::  
Sql :: load a log file in that format into MySQL 
::  
::  
:: jsonb 
::  
Sql ::  
::  
Sql :: select all column 
Javascript ::  
ADD CONTENT
Topic
Content
Source link
Name
5+5 =