2020
10-10
10-10
防止MySQL重复插入数据的三种方法
新建表格CREATETABLE`person`(`id`intNOTNULLCOMMENT'主键',`name`varchar(64)CHARACTERSETutf8COLLATEutf8_binNULLDEFAULTNULLCOMMENT'姓名',`age`intNULLDEFAULTNULLCOMMENT'年龄',`address`varchar(512)CHARACTERSETutf8COLLATEutf8_binNULLDEFAULTNULLCOMMENT'地址',PRIMARYKEY(`id`)USINGBTREE)ENGINE=InnoDBCHARACTERSET=utf8COLLATE=utf8_binROW_FORMAT=Dynamic...
继续阅读 >