![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Oracle
张_锋
J2EE architecture
展开
-
Oracle中取得十六進制月份
原理非常簡單,就是根據字符ASCII和數字之間的轉換。select case when to_number(to_char(sysdate, mm)) > 9 then chr(to_number(to_char(sysdate, mm)) + 55) else chr(to_number(to_char(sysdate, mm)) + 48) end mon from d原创 2007-09-12 16:03:00 · 1129 阅读 · 0 评论 -
数据库联接字符串大全
请参考如下地址:http://www.connectionstrings.com/转载 2007-10-30 07:48:00 · 711 阅读 · 0 评论 -
求某一时间点到现在的时间差(hh:mm:ss)
可能写的比较麻烦了,但是没有找到相应的函数,只能自己写了,记录下来,方便以后使用:select floor((sysdate - to_date(2009/04/01, yyyy/mm/dd)) * 24)||:|| floor(mod((sysdate - to_date(2009/04/01, yyyy/mm/dd))*24, 1)*60)||:原创 2009-04-03 09:35:00 · 1002 阅读 · 0 评论 -
Oracle中使用PL/SQL得到服务器和客户端的IP
select utl_inaddr.get_host_address from dual;select sys_context(USERENV,IP_ADDRESS) from dual;原创 2009-10-15 09:11:00 · 2910 阅读 · 0 评论 -
Oracle常用系统表查询
-- get all dictionary for oracle dbselect * from dict;--select * from dictionary;-- get all columns for dictionarysselect * from dict_columns;-- get the default name-space for current us原创 2010-02-19 09:25:00 · 1253 阅读 · 0 评论