From: | stefan(at)extum(dot)com |
---|---|
To: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
Cc: | pgsql-sql(at)postgresql(dot)org, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: id and ID in CREATE TABLE |
Date: | 2002-07-20 11:33:22 |
Message-ID: | Pine.LNX.4.44.0207201246180.3615-100000@extum.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
Thanks all for comments. In Oracle and DB2 as far as I know the upper case
column names are used when you have no columns quoted.. Indeed it is
recommended to use lower cases to
avoid mistakes and confusion during porting. Is that right ?
But anyway this is not so important, but why upper cases are bad ?
Why then Oracle , IBM is using them and why the SQL standard is not
changed ?
stefan
On Fri, 19 Jul 2002, Martijn van Oosterhout wrote:
> On Sat, Jul 20, 2002 at 10:39:52AM +0300, stefan(at)extum(dot)com wrote:
> >
> > I forgot about "" Sorry. So if I would use names quoted then my questions
> > are obsolete. Except one:
> >
> > So actually the only strange part would be PostgreSQL is folding to lower
> > cases a column name ...
>
> [snip]
>
> > Why is like this ? Why not letting them upper case if they are not quoted
> > ?
>
> I think it's because many people think that uppercase column names suck. And
> I agree with them. If you follow the given advice (either always quote
> column names or never) then not only will your program work, it's will be
> completely portable.
>
> So, if you'd used your CREATE TABLE statememnt below, you wouldn't have had
> this problem.
>
> > > CREATE TABLE ttt (
> > >
> > > ID int2,
> > > name text );
>
From | Date | Subject | |
---|---|---|---|
Next Message | stefan | 2002-07-20 11:50:34 | COMMIT in PostgreSQL |
Previous Message | Steve Brett | 2002-07-20 11:15:51 | Re: just a quick one ... |
From | Date | Subject | |
---|---|---|---|
Next Message | stefan | 2002-07-20 20:01:49 | Re: [SQL] id and ID in CREATE TABLE |
Previous Message | stefan | 2002-07-20 07:39:52 | Re: id and ID in CREATE TABLE |