数据库问题
zhoubin773636459
这个作者很懒,什么都没留下…
展开
-
oracle 递归查询,带排序
select a.element_id paramId,a.parent_element_id parentId, a.privilege_name text,a.location urls,a.seq_id seqId from interface_element_t a start with a.element_id='800' connect by a.parent_element_id ...原创 2012-04-28 17:10:42 · 532 阅读 · 0 评论 -
oracle字符串转成多列查询
1,将如下结果 id privilege_id 1 123,234,43532 2 2342,4353,24324 3 3453,463,663 转换成 id privilege_ids 1 123 1 234 1 43532 2 2342 2 4353 2 24324 3 3453 3 463 3 663 2,sql如下 selec...原创 2012-05-08 13:02:16 · 431 阅读 · 0 评论 -
org.xml.sax.SAXParseException: The content of elements must consist of well-form
Caused by: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup. at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java:271) ~[weblog...原创 2012-05-16 19:18:52 · 159 阅读 · 0 评论 -
ORA-22858: invalid alteration of datatype(varchar2转化clob)
ORA-22858: invalid alteration of datatype 由于业务的需要,今天研发同事问我在oracle里如何把table的varchar2类型转化为clob类型,其实标量类型的变量可以直接转换。 在'列'没有数据时,可以直接修改 alter table table_name modify column_name new_databyt...原创 2012-07-10 15:17:08 · 227 阅读 · 0 评论 -
oraclre常用函数
1.oracle中nvl()函数 nvl(arg,value)代表如果前面的arg的值为null那么返回的值为后面的value 2.oracle add_months(time,months)函数可以得到某一时间之前或之后n个月的时间 ...原创 2012-03-29 11:52:32 · 185 阅读 · 0 评论