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: Oracle SQL creating table as a copy of table

Re: Oracle SQL creating table as a copy of table

From: Paul <paulsnewsgroups_at_hotmail.com>
Date: Sun, 17 Apr 2005 19:28:10 +0100
Message-ID: <jja561d7i27dgiun6ov7pljojp8j6de4ob@4ax.com>

DA Morgan <damorgan_at_x.washington.edu> wrote:

>ALTER TABLE employees
>ADD (contractor_flag VARCHAR2(1));

And why not CHAR(1)? I thought there was a (minimal) overhead with VARCHAR2(x), so what's the point in imposing it for a field that you know will always be one and only one character?

Paul...

-- 

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2, 

Oracle, 9.2.0.1.0 (Enterprise Ed.)
Interbase 6.0.2.0;

When asking database related questions, please give other posters 
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.
 
Furthermore, As a courtesy to those who spend 
time analyzing and attempting to help, please 
do not top post.
Received on Sun Apr 17 2005 - 13:28:10 CDT

Original text of this message

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