2025年3月27日

SQL:不存在则 insert, 存在则 update

摘要: 方法一: 在MYSQL中有语句 insert into ... on duplicate key update... INSERT INTO table (id, name, age) values (1, 'yourname', 18) ON DUPLICATE KEY UPDATE name=' 阅读全文

posted @ 2025-03-27 14:23 天军 阅读(246) 评论(0) 推荐(0)

导航