mysql以首字母大写,其他字母小写的方式显示所有员工姓名(别名:name)
时间: 2024-05-24 20:12:29 浏览: 206
MySQL表名不区分大小写的设置方法
SELECT CONCAT(UPPER(LEFT(first_name, 1)), LOWER(SUBSTRING(first_name, 2))),
CONCAT(UPPER(LEFT(last_name, 1)), LOWER(SUBSTRING(last_name, 2))) AS name
FROM employees;
阅读全文