Forum Replies Created

Viewing 15 posts - 1,396 through 1,410 (of 3,061 total)

  • RE: Oracle empty string ('') is the same as NULL

    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...

  • RE: pre and post question

    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...

  • RE: Oracle empty string ('') is the same as NULL

    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...

  • RE: Data Warehouse as a Service

    Raunak Jhawar (10/14/2010)


    I was reading an article presented by Kognitio recently. Now considering an enterprise approach is it feasible to take it's DW solutions to the cloud.

    As far as I...

  • RE: Oracle empty string ('') is the same as NULL

    BowieRules! (10/18/2010)


    No, I don't think so... Char data type is also a string data type, and person posting original question was looking for a way to distinguish between NULL and...

  • RE: Oracle empty string ('') is the same as NULL

    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...

  • RE: How to create user in Oracle 9i

    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?

  • RE: Oracle empty string ('') is the same as NULL

    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...

  • RE: Oracle empty string ('') is the same as NULL

    BowieRules! (10/15/2010)


    I would add that it depends on how you define your string. If column is defined as varchar2(1) then empty string will be treated as NULL in Oracle. However,...

  • RE: Learning Oracle

    Lynn Pettis (10/15/2010)


    PaulB-TheOneAndOnly (10/15/2010)


    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...

  • RE: How to Rollback an entire database?

    jeff.mason (10/15/2010)


    PaulB-TheOneAndOnly (10/15/2010)


    Steve Jones - SSC Editor (10/15/2010)


    I would have thought so, but if people entered data in a new system, you can't restore without losing that data. So you...

  • RE: Learning Oracle

    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...

  • RE: How to Rollback an entire database?

    Steve Jones - SSC Editor (10/15/2010)


    I would have thought so, but if people entered data in a new system, you can't restore without losing that data. So you need to...

  • RE: How to Rollback an entire database?

    Richard McSharry (10/15/2010)


    In the worst-case scenario where a critical bug has crept through QA, are there any software tools that assist in helping you rollback a database to a previous...

  • RE: Best approach

    mpradeesh (10/15/2010)


    Thanks, but if the records are keep on updating, so I will end up in 100s of records for the same Account in the same table and its too...

Viewing 15 posts - 1,396 through 1,410 (of 3,061 total)