简体   繁体   中英

SQL Query that will migrate all Unique data from same database

在此处输入图片说明

Can someone help me write a query that will copy all Unique occurences from Table1 (id_objects,tags) and put them in table 2 .Id_objects on id_objects , tags on code in table 2 and tags on title in table 3

Is this what you wish to achieve?

insert into table2 (id_objects, code)
    select distinct id_objects, tags from table1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM