我需要知道如何获取 mysql 中特定列的最大大小,该表是
转:
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
专栏:
`nombreTurno` varchar(20) COLLATE utf8_spanish2_ci NOT NULL
我应该得到:
20
我越来越:
NULL
查询:
SELECT MAX( LENGTH( nombreTurno ) ) AS maxl
FROM turno
希望你能帮助我,谢谢