【发布时间】:2012-11-01 02:45:16
【问题描述】:
我正在尝试使用 excel 文件添加自定义标签列表,我已经完成了大部分工作。但我很困惑如何在 2 个不同的表列中添加相同的值。
我在
中插入了值INSERT INTO `steve`.`wp_terms` (`term_id`, `name`, `slug`, `term_group`) VALUES (NULL, 'tag99', 'tag99', '0');
和
INSERT INTO `steve`.`wp_term_taxonomy` (`term_taxonomy_id`, `term_id`, `taxonomy`, `description`, `parent`, `count`) VALUES (NULL, '21', 'post_tag', '', '0', '0');
现在我想在两个表中添加 term_id .. 有人可以告诉我该怎么做吗?
AND term_id 是数据库生成的值。
【问题讨论】:
-
你能重新提出这个问题吗?意思是,你面临什么问题?