摘要: decode 函数基本语法: 表示如果 字段|表达式 等于 条件1 时,DECODE函数的结果返回 条件1 ,...,如果不等于任何一个条件值,则返回缺省值。【注意】:decode 函数 ,只能在select 语句用。 decode 函数 用法: 1.使用decode 判断字符串是否一样 sql 测 阅读全文
posted @ 2019-01-10 21:31 从前有座山,山上 阅读(53106) 评论(0) 推荐(0) 编辑
摘要: 1.查询姓名中不包含C和c的员工信息 1 select * from employees where instr(first_name||last_name,'C')=0 or instr(first_name||last_name,'c')=0; ①字符函数 instr(input,char,m, 阅读全文
posted @ 2019-01-10 19:26 从前有座山,山上 阅读(769) 评论(0) 推荐(0) 编辑