📜  eliminar ultimo carcacter mysql 代码示例

📅  最后修改于: 2022-03-11 15:05:22.041000             🧑  作者: Mango

代码示例1
SELECT col
     , /* ANSI Syntax  */ SUBSTRING(col FROM 1 FOR CHAR_LENGTH(col) - 2) AS col_trimmed
     , /* MySQL Syntax */ SUBSTRING(col,     1,    CHAR_LENGTH(col) - 2) AS col_trimmed
FROM tbl