msyql
数据唯一性
先建立primary index或者unique index:
INSERT IGNORE
REPLACE
https://www.tutorialspoint.com/mysql/mysql-handling-duplicates.htm
https://www.mysqltutorial.org/mysql-insert-ignore/
https://www.runoob.com/mysql/mysql-handling-duplicates.html
INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDAT cut = cut +1 INSERT INTO books (name) SELECT ‘MySQL Manual‘ FROM dual WHERE NOT EXISTS (SELECT id FROM books WHERE id = 1)
https://blog.csdn.net/java_2017_csdn/article/details/78517789
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11