select * from product_info t where t.contract_detailid is not null and length(translate(t.contract_detailid,'-.0123456789'||t.contract_detailid,'-.0123456789'))<>length(t.contract_detailid) for update
原文地址:http://blog.csdn.net/jrainbow/article/details/39695545