MYSQL插入处理重复键值的几种方法 先建立2个测试表,在id列上创建unique约束。mysql>createtabletest1(idint,namevarchar(5),typeint,primaryk 重复键值