1. mysql 

http://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html

INSERT ... ON DUPLICATE KEY UPDATE 

 

2. postgrep

https://www.postgresql.org/docs/devel/static/sql-insert.html

http://stackoverflow.com/questions/1109061/insert-on-duplicate-update-in-postgresql

PostgreSQL since version 9.5 has UPSERT syntax, with ON CONFLICT clause.

 

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-09-10
  • 2021-04-14
相关资源
相似解决方案