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

Home -> Community -> Usenet -> c.d.o.misc -> Re: [Q] Porting SQL to Oracle

Re: [Q] Porting SQL to Oracle

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 12 Jun 2003 14:07:27 -0800
Message-ID: <3ee8eb8f@news.victoria.tc.ca>


Billy Verreynne (vslabs_at_onwe.co.za) wrote:
: andrewst_at_onetel.net.uk (Tony)

: > > Define what value is in between the quotes for ''.
: >
: > It is the empty string. It is the character analogue of the number 0.
: > It is a string of 0 characters.

: Char(0) still takes up a single byte or character in a string. A
: string with '' does not contain a Char(0). The string is undefined as
: it does not contain anything.. i.e. the string does not exist. It has
: not been constructed.

That's like saying that a bank account doesn't exist unless it has money in it.

A string is not a character, it is a set of characters. The number of characters in the set is one of it's attributes. A set of characters that has no charactes in it is still a perfectly good set, just like the bank account with no money is still a bank account.

The bank account doesn't magically cease to exist just because it contains no money - the string doesn't magically cease to exist just because it contains no characters.

In all other aspects of computer use, programmers seems to be able to work with strings that can have zero characters in them. Received on Thu Jun 12 2003 - 17:07:27 CDT

Original text of this message

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