小编Jim*_*Jim的帖子

MySQL字符串函数等效于PHP ucwords()函数

可能重复:
MySQL - 在现有表中大写每个单词的首字母

是否存在与PHP ucwords()函数等效的MySQL String 函数.

最终目标是使用MySQL来大写字符串中每个单词的第一个字母.

例.

-- The name field in the table holds "JOHN DOE"
SELECT LOWER(name)
  FROM table
Run Code Online (Sandbox Code Playgroud)

这会给我结果 'john doe'

我想要结果 'John Doe'

php mysql

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

mysql ×1

php ×1