摘要: //将字段最后两个字符去掉selectsubstr(t.modality,1,length(t.modality)-2),t.psifromorder_listtwheret.pl='LSS'ort.pl='PCS'//在字段后面添加后缀字符updateproduct_typetsett.code=CONCAT(t.code,'-1'),t.name=CONCAT(t.name,'-1')wheret.pcode='LSS'substr用法:Oracle中的截取字符串函数。 语法如下: substr(string, 阅读全文
posted @ 2012-08-28 14:47 十年半山 阅读(440) 评论(0) 推荐(0) 编辑