From Tadej.Kanizar@sagit-server.com Sat Apr 23 17:55:41 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 48B36535BE for ; Sat, 23 Apr 2005 14:55:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50525-08 for ; Sat, 23 Apr 2005 17:55:39 +0000 (GMT) Received: from sagit-server.com (sagit-server.com [193.95.229.214]) by svr1.postgresql.org (Postfix) with ESMTP id C5B4553570 for ; Sat, 23 Apr 2005 14:55:37 -0300 (ADT) Received: from Spooler by sagit-server.com (Mercury/32 v4.01a) ID MO000702; 23 Apr 2005 19:55:33 +0200 Received: from spooler by sagit-server.com (Mercury/32 v4.01a); 23 Apr 2005 19:55:16 +0200 Received: from Tadej (193.77.54.81) by sagit-server.com (Mercury/32 v4.01a) with ESMTP ID MG000701; 23 Apr 2005 19:55:07 +0200 From: "Tadej Kanizar" To: Subject: weird SQL statement question Date: Sat, 23 Apr 2005 19:55:29 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0050_01C5483E.670B6760" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVILaLWy0MeFV8QSc+YcbfeQInmJA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-ID: <1057768D27BE@sagit-server.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.863 tagged_above=0 required=5 tests=HTML_MESSAGE, RCVD_IN_NJABL_DUL, UPPERCASE_25_50 X-Spam-Level: * X-Archive-Number: 200504/359 X-Sequence-Number: 21252 This is a multi-part message in MIME format. ------=_NextPart_000_0050_01C5483E.670B6760 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Ok, so I installed the latest version of Postresql (8.02) on a WinXP SP2 machine..=20 My question is why won't the statement SELECT * FROM table work, whereas = the statement SELECT * FROM =BBtable=AB works! And, to explain a bit more, here's another example: INSERT INTO TestTable (Name, Surname) VALUES ('name', 'surname'); .. = this DOESN'T work INSERT INTO =BBTestTable=AB (=BBName=AB, =BBSurname=AB) VALUES ('name', = 'surname'); .. this DOES work =20 Any ideas? :-) =20 Regards, Tadej ------=_NextPart_000_0050_01C5483E.670B6760 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

Ok, so I installed the latest version of Postresql = (8.02) on a WinXP SP2 machine..

My question is why won't the statement SELECT * FROM = table work, whereas the statement SELECT * FROM =BBtable=AB = works!

And, to explain a bit more, here's another = example:

INSERT INTO TestTable (Name, Surname) VALUES ('name', 'surname');=A0 .. this DOESN'T work

INSERT INTO =BBTestTable=AB (=BBName=AB, = =BBSurname=AB) VALUES ('name', 'surname'); .. this DOES work

 

Any ideas? J

 

Regards,

Tadej

------=_NextPart_000_0050_01C5483E.670B6760-- From fbax@sympatico.ca Sat Apr 23 18:31:08 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 69C60542EF for ; Sat, 23 Apr 2005 15:31:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58565-02 for ; Sat, 23 Apr 2005 18:31:03 +0000 (GMT) Received: from tomts22-srv.bellnexxia.net (tomts22.bellnexxia.net [209.226.175.184]) by svr1.postgresql.org (Postfix) with ESMTP id 66356542CC for ; Sat, 23 Apr 2005 15:31:00 -0300 (ADT) Received: from acer.sympatico.ca ([65.95.128.185]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050423183058.NDDZ21470.tomts22-srv.bellnexxia.net@acer.sympatico.ca> for ; Sat, 23 Apr 2005 14:30:58 -0400 Message-Id: <5.2.1.1.0.20050423142822.04965cf0@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Sat, 23 Apr 2005 14:30:45 -0400 To: pgsql-sql@postgresql.org From: Frank Bax Subject: Re: weird SQL statement question In-Reply-To: <1057768D27BE@sagit-server.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.092 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/361 X-Sequence-Number: 21254 At 01:55 PM 4/23/05, Tadej Kanizar wrote: >Ok, so I installed the latest version of Postresql (8.02) on a WinXP SP2=20 >machine.. > >My question is why won't the statement SELECT * FROM table work, whereas=20 >the statement SELECT * FROM =BBtable=AB works! > >And, to explain a bit more, here's another example: > >INSERT INTO TestTable (Name, Surname) VALUES ('name', 'surname'); .. this= =20 >DOESN'T work > >INSERT INTO =BBTestTable=AB (=BBName=AB, =BBSurname=AB) VALUES ('name',= 'surname'); ..=20 >this DOES work If you create a table using quotes and mixed-case, you will need quotes=20 every time you reference the table. Don't use quotes when you create the=20 table and you won't need them when you acces the table with other commands. From mischa.sandberg@telus.net Sat Apr 23 23:57:10 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DBD2353373 for ; Sat, 23 Apr 2005 20:57:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25976-05 for ; Sat, 23 Apr 2005 23:57:05 +0000 (GMT) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by svr1.postgresql.org (Postfix) with ESMTP id 16D195378E for ; Sat, 23 Apr 2005 20:57:03 -0300 (ADT) Received: from localhost ([199.185.220.240]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050423235705.ASH4865.priv-edtnes51.telusplanet.net@localhost>; Sat, 23 Apr 2005 17:57:05 -0600 Received: from 64.180.225.200 ( [64.180.225.200]) as user a3a18850@192.168.200.1 by webmail.telus.net with HTTP; Sat, 23 Apr 2005 16:57:05 -0700 Message-ID: <1114300625.426ae0d1956fc@webmail.telus.net> Date: Sat, 23 Apr 2005 16:57:05 -0700 From: Mischa Sandberg To: Frank Bax Cc: pgsql-sql@postgresql.org Subject: Re: weird SQL statement question References: <5.2.1.1.0.20050423142822.04965cf0@pop6.sympatico.ca> In-Reply-To: <5.2.1.1.0.20050423142822.04965cf0@pop6.sympatico.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 64.180.225.200 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.082 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200504/363 X-Sequence-Number: 21256 Quoting Frank Bax : > At 01:55 PM 4/23/05, Tadej Kanizar wrote: > > >Ok, so I installed the latest version of Postresql (8.02) on a WinXP > SP2 > >machine.. > > > >My question is why won't the statement SELECT * FROM table work, > whereas > >the statement SELECT * FROM »table« works! > If you create a table using quotes and mixed-case, you will need > quotes > every time you reference the table. Don't use quotes when you create > the > table and you won't need them when you acces the table with other > commands. I don't suppose that the original poster actually named the table "table"? In which case, being a keyword, it will ALWAYS need quotes. "Dreams come true, not free." -- S.Sondheim, ITW