Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Should TO_CHAR be replaced by high level code with pl/sql calls?

Re: Should TO_CHAR be replaced by high level code with pl/sql calls?

From: Pete Finnigan <plsql_at_petefinnigan.com>
Date: Sat, 22 Nov 2003 13:33:33 +0000
Message-ID: <$4C$mgAtW2v$Qxxt@peterfinnigan.demon.co.uk>


Hi,

It may slightly make sense only if your programs are written in C or C++ (OCI, Pro*C, OCCI) and you make many calls to the database with SQL using TO_CHAR and also depending on how fast your own C conversion is. The to_char's implemented in $ORACLE_HOME/rdbms/admin/stdspec.sql and stdbody.sql are either pragma builtin or simply rely on implicit conversions. I don't know the exact mechanism for the pragma builtin keyword but the function is almost certainly implemented in C and would be called in the SQL engine directly so should be reasonably efficient. We don't know the details of why this is suggested but on balance its probably not worth the effort.

Kind regards

Pete

-- 
Pete Finnigan
email:pete_at_petefinnigan.com
Web site: http://www.petefinnigan.com - Oracle security audit specialists
Book:Oracle security step-by-step Guide - see http://store.sans.org for details.
Received on Sat Nov 22 2003 - 07:33:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US