Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
 
PREVIOUS NEXT
Tagged: #insert #table #data #mysql #query
ADD COMMENT
Topic
Name
7+9 =