I'm programming a script using PHP and MySQL and I want to get a
unique id (consisting of a string: capitals and small
letters with numbers) like:
I found many functions in PHP that can generate such numbers but I'm afraid about how to ensure the id is unique!
UPDATE: uuid is long, I mean such id like: (P5Dc) an 11 alphanumeric char.
A programmatic way can be to:
I use UUID() to create a unique value.
insert into Companies (CompanyID, CompanyName) Values(UUID(), "TestUUID");