du kan använda UUID.
INSERT INTO mytable(id, name) VALUES(SELECT UUID(), 'some data');
Läs mer om UUID:http://mysqlbackupnet. codeplex.com/wikipage?title=Using%20MySQL%20With%20GUID%20or%20UUID
du kan använda UUID.
INSERT INTO mytable(id, name) VALUES(SELECT UUID(), 'some data');
Läs mer om UUID:http://mysqlbackupnet. codeplex.com/wikipage?title=Using%20MySQL%20With%20GUID%20or%20UUID