situation is like
DB:A , Table:member pk , id , name , birthday , phone , cell , address
DB:B , Table:member pd , id , name , birthday
wants to get the difference with only
"field"
in this situation hope it would show :
phone , cell , address
SELECT *
FROM `INFORMATION_SCHEMA`.`COLUMNS`
WHERE `TABLE_SCHEMA` = 'db_name'
AND `TABLE_NAME`='table_name';
I tried this but only show all column. Thanks
将两个表都转储到sql文件中并应用
diff table1.sql table1.sql
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.