Home >Database >Mysql Tutorial >mysql插入或更新_MySQL

mysql插入或更新_MySQL

WBOY
WBOYOriginal
2016-06-01 13:45:29913browse

bitsCN.com

插入或更新
INSERT INTO pro_realtimeprice_rank (id, id_s, plat,d_m) VALUES (1, '5445', '5454', 5) ON DUPLICATE KEY UPDATE d_m=d_m+5;
 

bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn