搜索数据表 store store_group store_website
注意外键约束
UPDATE store SET store_id = 0 WHERE code='admin';
UPDATE store_group SET group_id = 0 WHERE name='Default';
UPDATE store_website SET website_id = 0 WHERE code='admin';
本文介绍如何通过SQL语句更新商店数据库中的store, store_group和store_website表,并特别注意外键约束,确保数据一致性。
搜索数据表 store store_group store_website
注意外键约束
UPDATE store SET store_id = 0 WHERE code='admin';
UPDATE store_group SET group_id = 0 WHERE name='Default';
UPDATE store_website SET website_id = 0 WHERE code='admin';
4619

被折叠的 条评论
为什么被折叠?