'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?
{
"Field": "id",
"Type": "mediumint(5) unsigned",
"Null": "NO",
"Key": "PRI",
"Default": null,
"Extra": "auto_increment",
***"CUSTOM_KEY": "custom_value"***
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
