mySql copy rows into same table with key value changed (not overwriting existing) -


how copy selection of rows mysql table , insert key value changed. can select , insert in same query?

to precise, want this:

table cols, id , iso3 keys:
[id][iso3][text]
1,enu,a text in english
2,enu,another text in english
3,enu,bla bla
1,jpn,与えられた枠

after insert want table this:
1,enu,a text in english
2,enu,another text in english
3,enu,bla bla
1,jpn,与えられた枠
2,jpn,another text in english
3,jpn,bla bla

insert your_table (id, iso3, text) select id, 'jpn', text your_table id in ( list_of_ id's ) 

if want change value in 1 cell, hard-type tthe value instead of selecting table (like did 'jpn').


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -