i need to know how to get the max size of an specific column in mysql, the table is
turno :
CREATE TABLE `turno` (
`idTurno` tinyint(4) NOT NULL,
`nombreTurno` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
`horaInicio` tinyint(4) NOT NULL,
`horafin` tinyint(4) NOT NULL,
`valorTurno` int(11) NOT NULL,
PRIMARY KEY (`idTurno`))
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci
the column :
`nombreTurno` varchar(20) COLLATE utf8_spanish2_ci NOT NULL
i should get :
20
im getting:
NULL
the query :
SELECT MAX( LENGTH( nombreTurno ) ) AS maxl
FROM turno
hope you can help me, thank you