The database I am working on was originally prototyped (by someone else) with all the primary keys (and associated foreign keys) as strings. The keys really need to be numeric.
The database has 16 tables with minimal test data in it. All the data has numbers in the key fields.
What is the easiest way for me to fix this?
I created a SQL script to make the change on a single association then I’ll modify and repeat it 20 more times.
I did the first table (MODULES.ID to MODULE_SESSIONS.MODULE_ID association) and it worked.
Here is the script I used: