作业帮 > 综合 > 作业

oracle length函数

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/14 02:17:52
oracle length函数
select area_code,area_name from dict_area where length(area_code)=4 ORDER BY area_code asc
这句sql语句中的where length(area_code)=4是什么意思?
length函数:取字符串长度
where length(area_code)=4 :筛选 area_code 的长度为4的记录