转自:http://www.cnblogs.com/zhangronghua/archive/2007/08/20/862812.html SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE--------- --------- --------- ----
项目过程中发现在Oracle中调用ArcSDE的st_astext函数返回ST_Geometry类型字段的WKT文本有时空间类型前缀没有返回,例如一个点的经度为113.4,纬度为30.6,调用st_astext函数正常返回就应该是“POINT(113.4 30.6)”,但有时返回的是“(113.4 30.6)”,缺少POINT前缀,以下real_st_astext函数可解决该问题. create or replace function real_st_astext(geom1 in clob)
Description The Oracle/PLSQL TO_CHAR function converts a number or date to a string.将数字转换为日期或字符串 Syntax TO_CHAR( value [, format_mask] [, nls_language] ) Parameters or Arguments Value A number or date that will be converted to a string. format_mask O
Description The Oracle/PLSQL COUNT function returns the count of an expression. The COUNT(*) function returns the number of rows in a table that satisfy the criteria of the SELECT statement, including duplicate rows and rows containing null values in
Description The Oracle/PLSQL NVL function lets you substitute a value when a null value is encountered. NVL函数是当出现空值时替换一个值 Syntax NVL( string1, replace_with ) String1 The string to test for a null value. replace_with The value returned if string1 is n
https://andreynikolaev.wordpress.com/2010/10/28/appetizer-for-dtrace/ Appetizer for DTrace Filed under: DTrace,Latch — andreynikolaev @ 3:33 pm To discover how the Oracle latch works, we need the tool. Oracle Wait Interface allows us to explore the
1.返回值的区别 函数有1个返回值,而存储过程是通过参数返回的,可以有多个或者没有 2. 调用的区别,函数可以在查询语句中直接调用,而存储过程必须单独调用. 函数:一般情况下是用来计算并返回一个计算结果: 存储过程: 一般是用来完成特定的数据操作(比如修改.插入数据库表或执行某些DDL语句等等) 下图说明它们之间的区别: 一个函数举例 create or replace function fun1(a in varchar2,b out varchar2)//其中 in 和 out 是输入输出