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