随笔分类 - DataBase
结构化查询语言
摘要:1=1 1<>1及<>的使用方法
阅读全文
摘要:使用to_char处理日期 格式代码 语法 TO_CHAR(date,’格式’); -- SQL中不区分大小写 用法 to_char(sysdate,'q') 季 to_char(sysdate,'yyyy')年 to_char(sysdate,'mm')月 to_char(sysdate,'dd'
阅读全文
摘要:表增加注释 comment on table 表名 is '表注释"; 列增加注释 comment on column 表.列 is '列注释'; 读取表注释 select * from user_tab_comments where comments is not NULL AND TABLE_N
阅读全文
摘要:substr() 函数 用于截取对应字段指定长度。 SUBSTR(string ,pos,len) string:指定字符串 pos:规定字符串从何处开始,(这里的第一个位置是1而不是0)为正数时则从字段开始出开始,为负数则从结尾出开始。 len:要截取字符串的长度。(是从1开始计数而不是0) IN
阅读全文
摘要:方法一: -- 语法 case when 列名=条件 then 命名 else 命名 end 示例 select id, (case when class= 0 then "语文" when class= 1 then "数学" when class = 2 then "英语" end) as 学科
阅读全文
摘要:更新 remarks 数据时,在原数据 01 基础上追加数据 ,11 update tablename set remarks=remarks||',11' where id='001'; 执行结果 remarks = 01,11
阅读全文
摘要:自定义快捷关键字自动转换为大写
阅读全文
摘要:查找 clob大字段中是否包含某个字符串内容
阅读全文
摘要:oracle 19c 安装流程
阅读全文
摘要:PL/SQL 语言 面向过程语言,是对sql语言的扩展,主要用来编写存储过程和存储函数等。 格式 声明方法 -- Created on 2022/6/14 declare -- Local variables here -- 变量 begin -- Test statements here -- 一
阅读全文
摘要:Navicat 完全卸载
阅读全文
摘要:记录PLSQL 使用时出现的问题及解决方法
阅读全文
浙公网安备 33010602011771号