07 2018 档案

摘要:select * into 目标表名 from 源表名 insert into 目标表名(fld1, fld2) select fld1, 5 from 源表名 以上两句都是将 源表 的数据插入到 目标表,但两句又有区别的: 第一句(select into from)要求目标表不存在,因为在插入时会 阅读全文
posted @ 2018-07-31 11:27 妖狐鬼魅 阅读(120) 评论(0) 推荐(0) 编辑
摘要:第一种 格式 : 简单Case函数 : 格式说明 case 列名 when 条件值1 then 选择项1 when 条件值2 then 选项2....... else 默认值 end eg: select case job_level when '1' then '... 阅读全文
posted @ 2018-07-30 17:15 妖狐鬼魅 阅读(116) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示