It may be better to name it specifically as INTEGER etc. but good practice
would dictate using the %TYPE option..
K.
-Original Message-
Sent: 27 August 2001 17:01
To: Multiple recipients of list ORACLE-L
Dear gurus !
What is better performance-wise - to declare a variable inside a
Title: RE: A quick pl/sql datatypes question
I do
not think there will be any constraints when you declare it as
t.col%rowtype.
I
believe Oracle will do a lookup to come with the absolute data type during the
compilation of the stored proc or the anonymous block and will establish some
Dear gurus !
What is better performance-wise - to declare a variable inside a pl/sql
block (or a trigger) as integer (number , Pls_integer etc..) or as
mytable.mycolumn%TYPE .
Again , i'm concerned ONLY about performance in this question.
Thanks a lot.
DBAndrey
* 03-9254520
* 053-464562
*
From a pure performance direction,
pls_integer or binary_integer is probably
the fastest.
If you declare a variable to be of
table_name.column_name%type
there are implicit constraints on the
variable and any pl/sql assignments
(in particular arithmetic operations)
have to check that the