sql >> Base de Datos >  >> RDS >> Mysql

Obtenga la longitud máxima permitida en la columna, mysql

select COLUMN_NAME, CHARACTER_MAXIMUM_LENGTH 
from information_schema.columns
where table_schema = DATABASE() AND   -- name of your database
      table_name = 'turno' AND        -- name of your table
      COLUMN_NAME = 'nombreTurno'     -- name of the column