Viewing 15 posts - 1,396 through 1,410 (of 3,061 total)
SQL>
SQL> set serveroutput on
SQL> declare
2 XXX varchar2(10);
3 MSG varchar2(50);
4 begin
5 XXX := '';
6 select decode(XXX,NULL,'IS...
October 18, 2010 at 12:01 pm
GSquared (10/18/2010)
What's the purpose of the split? Can one "pre" have more than one "post" for a given "item", or vice versa?
That's a very good question indeed. I was...
October 18, 2010 at 11:24 am
Oh yes, you can but, a Null and an empty string will be both treated as Null
- insert a Null
- insert an empty-string
- insert a letter
- count nulls... two!
SQL> create...
October 18, 2010 at 11:09 am
Raunak Jhawar (10/14/2010)
As far as I...
October 18, 2010 at 10:27 am
BowieRules! (10/18/2010)
October 18, 2010 at 10:21 am
BowieRules! (10/18/2010)
If you define that variable as char(1) or char(20) instead of varchar2, you will see that it won't be treated as null. That's what I was trying to specify...
Since...
October 18, 2010 at 10:04 am
kanejhons (10/16/2010)
10.Assign roles to the new user.
There is a particular privilege you must grant in Ora11g, don't you?
Does CREATE SESSION rings a bell?
October 18, 2010 at 6:32 am
BowieRules! (10/15/2010)
And ' ' is no longer treated as NULL...
:blink: Really?
SQL> select version from v$instance;
VERSION
-----------------
11.1.0.7.0
SQL>
SQL> variable XXX varchar2(20)
SQL> exec :XXX := ''
PL/SQL procedure successfully completed.
SQL> select :XXX from...
October 18, 2010 at 6:24 am
BowieRules! (10/15/2010)
October 18, 2010 at 6:17 am
Lynn Pettis (10/15/2010)
PaulB-TheOneAndOnly (10/15/2010)
nick.mcdermaid (10/14/2010)
-Variables which 'reflect' existing table meta data
-Custom data types
-Multiple 'methods' within the package all...
October 16, 2010 at 6:04 am
jeff.mason (10/15/2010)
PaulB-TheOneAndOnly (10/15/2010)
Steve Jones - SSC Editor (10/15/2010)
October 15, 2010 at 4:40 pm
nick.mcdermaid (10/14/2010)
I'm impressed with Oracle packages as they almost seem like classes to me-Variables which 'reflect' existing table meta data
-Custom data types
-Multiple 'methods' within the package all returning different types
...and...
October 15, 2010 at 3:33 pm
Steve Jones - SSC Editor (10/15/2010)
October 15, 2010 at 2:52 pm
Richard McSharry (10/15/2010)
October 15, 2010 at 1:57 pm
mpradeesh (10/15/2010)
October 15, 2010 at 1:52 pm
Viewing 15 posts - 1,396 through 1,410 (of 3,061 total)