oracle plsql
共 2 篇文章
Oracle/PLSQL: Replace Function
Oracle/PLSQL: Replace Function In Oracle/PLSQL, the replace function replaces a sequence of characters in a string with another set of characters. The syntax for the replace function is: replace( string1, string_to_replace, [ replacement_string ] ) string1 is the string to replace a sequence of cha…
2010-10-25 18:03 · oracle plsql · PHP · .net · Oracle · IE
rownum与rowid
rownum: 1、rownum是oracle系统顺序分配为从查询返回的行的编号,返回的第一行分配的是1,第二行是2, 依此类推,这个伪字段可以用于限制查询返回的总行数。 2、rownum不能以任何基表的名称作为前缀。 使用方法: 现有一个商品销售表sale,表结构为: month char(6) --月份 sell number(10,2) --月销售金额 create table sale (month char(6),sell number); insert into sale values('200001',1000); insert into sale values('200002…
2009-11-13 21:23 · oracle plsql · 数据结构 · SQL · Oracle