摘要: round(数字 | 列 保留小数的位数):四舍五入。 select a.*,round(s),round(-s) from bqh4 a trunc(数字 | 列 保留小数的位数):舍弃指定位置的内容。 select a.*,trunc(s),trunc(s,2),trunc(s,-1) from 阅读全文
posted @ 2018-10-07 23:40 南清风 阅读(743) 评论(0) 推荐(0)
摘要: length:(字符串 | 列):求出字符串的长度; 求出bqh4表中zym列的长度。 select * from bqh4select a.*,length(zym) from bqh4 a 阅读全文
posted @ 2018-10-07 23:25 南清风 阅读(1096) 评论(0) 推荐(0)
摘要: orcl中replace()用法: replace:(字符串 | 列):进行替换; 将bqh1表中name列带“小”的字改成“大”: select * from bqh1select a.*,replace(name,'小','大') from bqh1 a 阅读全文
posted @ 2018-10-07 23:15 南清风 阅读(893) 评论(0) 推荐(0)
摘要: upper(字符串 | 列):输入的字符串变为大写返回; 将 bqh4表里的zym字段信息中含有字母的全部转成大写的方法: select * from bqh4 select upper(zym) from bqh4 lower:(字符串 | 列):输入的字符串变为小写返回; 将 bqh4表里的zy 阅读全文
posted @ 2018-10-07 23:03 南清风 阅读(475) 评论(0) 推荐(0)