I have to use INSERTand UPDATEin one request. For this, SQL with a statement MERGE.
INSERT
UPDATE
MERGE
Whether the statement is supported MERGEin MySQL. If supported, please provide a sample.
MERGE MySQL is not supported, but there is another way to do the same:
INSERT ... ON DUPLICATE KEY UPDATE
If you specify the ON DUPLICATE KEY UPDATE option in INSERT and the new row causes a duplicate value in the UNIQUE or PRIMARY KEY index, MySQL updates the old row based on the new values.
Source: https://habr.com/ru/post/1671768/More articles:Jupyter Timeout waiting for a response in Chrome - pythonHow to install GNU Global with universal ctags support using Homebrew? - ruby | fooobar.comTypeScript VsTsc Error in Visual Studio 2017 - visual-studioAngular 2 ng2 donut text diagrams in the middle? - angularPHP mt_random in a loop from WP ALL Import for Woocommerce, Wordpress - wordpressChart.js - how to disable everything on hover - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1671770/how-can-you-get-facebook-access-token&usg=ALkJrhhcy14T_r2wwNxdPpM3fQDG08E9dgExporting visjs network to jpeg / png - angularjshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1671772/getting-facebook-access-token-from-user-id-and-facebook-app-secret&usg=ALkJrhhFVfLl3aombMUKg7mUJDB_-ZchLgWhat versions of elm packages are installed? - elmAll Articles