随笔分类 - 数据库
记录在使用数据库时发现的一些有意思的内容
摘要:sql SELECT DISTINCT table_name FROM information_schema.columns WHERE table_schema = 'xxx' and column_name='xxx'; information_schema 介绍 information_sch
阅读全文
摘要:--Integer for loop for i in 1..10 loop …. end loop; --Implicit cursor loop for c in (select ) loop …. end loop; --While loop i:=5; while i >10 loop i:
阅读全文
摘要:PL/SQL注册码 plsql13.0.5产品编号Product Code: kfj6yg6rfyhqcha6cbgs6fsw3kyje7a6qr序列号Serial Number: 276182口令Password: xs374ca
阅读全文
摘要:ROWNUM能够对查询结果进行编号,之后选择合适区间内容进行返回即可 String sql="select * from ("; sql+="select ROWNUM AS rowno, t.* from "+datatbname+" t where ("+column.get(0)+" like
阅读全文
摘要:1.查询之前某一时间的数据信息 select * from bt_mb_new as of timestamp to_timestamp('2020-11-28 20:00:00','yyyy-mm-dd hh24:mi:ss'); bt_mb_new :表名 2020-11-28 20:00:00
阅读全文
摘要:发现使用exp在导出oracle数据时空表不能导出的问题 参考https://www.cnblogs.com/mabaoying/p/12658100.html https://blog.csdn.net/weixin_33971130/article/details/92447499 不过最简单的
阅读全文