题解 | #获取employees中的first_name#

获取employees中的first_name

http://www.nowcoder.com/practice/74d90728827e44e2864cce8b26882105

LEFT(s,n)返回字符串 s 的前 n 个字符

RIGHT(s,n)返回字符串 s 的后 n 个字符

right

select first_name
from employees
order by right(first_name, 2)

substr / substring

select first_name 
from employees  
order by substr(first_name,-2)
全部评论

相关推荐

Clavoss:一眼AI,死亏
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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