摘要:
select a.*,instr(a.administration,'1') from DRUG_PRESC_DETAIL a 查找1在字段中出现的位置 select instr(a.administration,'1',1,2) from DRUG_PRESC_DETAIL a 查找1在字段中从第 阅读全文
posted @ 2018-05-23 16:46
何方吟啸且徐行
阅读(3500)
评论(0)
推荐(0)
摘要:
oracle decode函数用法: 其实decode函数就像if else一样,以我写的sql举例:select decode(a.dept_code,'010103',2) as keshi from dept_dict a 当dept_code等于010103时显示的值就是2,当然decode 阅读全文
posted @ 2018-05-23 16:45
何方吟啸且徐行
阅读(173)
评论(0)
推荐(0)

浙公网安备 33010602011771号