SQL244将last_name和first_name连接

将employees表中的所有员工的last_name和first_name通过引号连接起来。

https://www.nowcoder.com/practice/810bf4ee3ac64949b08983aa66ec7bee

select
concat(last_name,"'",first_name) name
from employees

本题考查concat函数用于将两个字符串连接成一个整体;注意用单引号 ' 连接,时,需要用" "双引号括起来区分

全部评论

相关推荐

评论
1
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务