RIGHT(s,n)

RIGHT(s,n) 用于返回字符串 s 中右边 n 个字符

mysql> SELECT RIGHT(‘football‘,4);
+---------------------+
| RIGHT(‘football‘,4) |
+---------------------+
| ball                |
+---------------------+
时间: 2024-11-29 09:10:31