I would like to get all the column names from the MySQL table, skip each column name and then start the stored procedure using these column names as a variable. Sort of:
colnames = get column names from table for each colname if something changed then do something else do something else
It looks like SHOW COLUMNS FROM myTable will give me column names, but how would I get the column names in a loop?
I would really like to run all this in a stored procedure using native SQL. Since I'm still learning the intricacies of MySQL, and this will really help my project. Thank you for your help.
source share