1.在表中增加一列uuid(原主鍵不動)
2.執行sql語句
update warehouseentry set uuid = UUID();
update warehouseentry set uuid = REPLACE(uuid,'-','');
3.將uuid設置爲主鍵
4.取消原主鍵
1.在表中增加一列uuid(原主鍵不動)
2.執行sql語句
update warehouseentry set uuid = UUID();
update warehouseentry set uuid = REPLACE(uuid,'-','');
3.將uuid設置爲主鍵
4.取消原主鍵