Skip to content
Advertisement

How do I add a custom key to mysql information_schema.COLUMNS

Im using this mysql statement SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$dbck' AND TABLE_NAME = '$tbck' AND COLUMN_NAME = '$field_param'". How can I add a custom key to the mysql information_schema.columns to look like this?

JavaScript

Advertisement

Answer

You can create and fill your own table in your own database like :

JavaScript

and retrieve data using JOIN

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement