I don't know if its possible, but I want to get the length of a datatype in MySQL.
So the type is a int(11) and I know how to get the type back with the query:
SELECT DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS
it will return a list of
[
int, varchar
]
but now I want to get the length of the int back. So what I want to achieve is this:
[ int => 11, varchar => 45]
To make it more clear. if i edit the structure of the table. You will see this page. i want to get the first 3 columns of this table structure. This if for frontend purposes.
Please suggest me a query to get this result?