I have a table with an auto-increment ID field as shown below.
+------------+-------------------------------------+ | company_id | name | +------------+-------------------------------------+ | 1 | International Client | | 2 | Oracle | | 3 | test | | 4 | testabc | | 5 | testdef | | 6 | abcd | +------------+-------------------------------------+
I want to update the ID column to be a GUID using the
uuid()function.
Additionally, how do I update the foreign key references to the correct GUID?
you can't use it with autoincrement
guid is char not intger
you need to insert it your self
also you will need to change the id to char(40)
Use triggers.
table and pk, now trigger..
Now try,
regards, /t