上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 205 下一页
摘要: 【SQL】 select a.table_name as name,b.comments as remark from (select table_name from user_tables ) a inner join (select table_name,comments from user_t 阅读全文
posted @ 2022-08-16 22:08 逆火狂飙 阅读(242) 评论(1) 推荐(0)
摘要: 1.空值处理函数 1.1 nvl 用途:将第一参数(可能的)空值转换为第二参数 典型应用场景:A表左联到B表,如果某字段可能为空时。 例: SQL> select emp.name,nvl(dept.name,'梁山') as DEPT from emp 2 left join dept 3 on 阅读全文
posted @ 2022-08-16 08:26 逆火狂飙 阅读(598) 评论(0) 推荐(0)
摘要: 【数据库版本】 Oracle 19c 服务器版 【出错记录】 SQL> create user hy identified by 1234; create user hy identified by 1234 * 第 1 行出现错误: ORA-65096: 公用用户名或角色名无效 【出错原因】 or 阅读全文
posted @ 2022-08-12 03:45 逆火狂飙 阅读(5379) 评论(0) 推荐(0)
摘要: 用Html5/Canvas绘制蓝底白线六角雪花。 阅读全文
posted @ 2022-08-11 20:12 逆火狂飙 阅读(265) 评论(0) 推荐(0)
摘要: 【sql】 select a.column_name as name,a.column_id as order_num,b.comments as remark from (select column_name,column_id from user_tab_columns where table_ 阅读全文
posted @ 2022-08-11 20:06 逆火狂飙 阅读(347) 评论(1) 推荐(0)
摘要: 需求: 如题 代码: package newtname; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Test { /** * 按旧表名+当前日期生成新表名 * 要求新 阅读全文
posted @ 2022-08-09 05:43 逆火狂飙 阅读(141) 评论(0) 推荐(0)
摘要: 读取: String value=ps.getString(columnIndex); 这个和字符型字段的读取一致。 写入: String value=......; ps.setCharacterStream(columnIndex,new StringReader(value),value.le 阅读全文
posted @ 2022-08-08 13:52 逆火狂飙 阅读(511) 评论(0) 推荐(0)
摘要: 【需求】 程序中需要建表,需要动态知道DB系统所允许的表名最大长度。 如果按11g允许的30位给12c,19c设置,那么后两者实际允许的128位就被武断限制了。 【思路】 使用create table tname(df char(1));这样的语句建表,不断加长tname的长度,当建表出现异常时,回 阅读全文
posted @ 2022-08-01 19:20 逆火狂飙 阅读(141) 评论(1) 推荐(0)
摘要: luna@ORCL>comment on table DEPT is '部门表'; --创建表注释 注释已创建。 luna@ORCL>select * from user_tab_comments where table_name='DEPT'; --读取表注释 TABLE_NAME TABLE_T 阅读全文
posted @ 2022-07-27 17:06 逆火狂飙 阅读(100) 评论(0) 推荐(0)
摘要: 高中数学/比大小 已知 a=log_3_2, b=log_5_3,C=log_8_5,则下列关系式正确的是() A.a>b>c B.a 阅读全文
posted @ 2022-07-26 16:07 逆火狂飙 阅读(411) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 205 下一页