标签:mysql
INSERT INTO <table> (field1, field2, field3, ...)
VALUES (‘value1‘, ‘value2‘,‘value3‘, ...)
ON DUPLICATE KEY UPDATE
field1=‘value1‘, field2=‘value2‘, field3=‘value3‘, ...
mysql之 存在则修改,不存在则插入的sql(inert if not exist,else update)语法
标签:mysql
原文地址:http://blog.csdn.net/hellochenlian/article/details/44080759