【发布时间】:2017-08-28 04:55:57
【问题描述】:
我有一个表 ps_feature :
-------------
|id_feature |
-------------
|1 |
|2 |
|3 |
|4 |
|5 |
|6 |
-------------
和一个表 ps_feature_lang :
--------------------------------
|id_feature | id_lang | name |
--------------------------------
|1 | 1 | text1 |
|2 | 1 | text2 |
|4 | 1 | text3 |
|5 | 1 | text4 |
--------------------------------
是否有一个 MySQL 脚本可以在 PhPMyAdmin 中运行来比较两个表并在 ps_feature_lang 中添加缺失值?
结果应该是:
--------------------------------
|id_feature | id_lang | name |
--------------------------------
|1 | 1 | text1 |
|2 | 1 | text2 |
|3 | 1 | N/A |
|4 | 1 | text3 |
|5 | 1 | text4 |
|6 | 1 | N/A |
--------------------------------
谢谢。
【问题讨论】:
标签: mysql