From: | Anand Raman <araman(at)india-today(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: problems with query |
Date: | 2000-12-21 04:54:09 |
Message-ID: | 20001221102409.B30148@india-today.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
hi
Try to use single quotes rather than double quotes..
INSERT INTO ciudad (ciudad) VALUES ('Villa Guillermina');
rather than
INSERT INTO ciudad (ciudad) VALUES ("Villa Guillermina");
Hope this helps
Anand
On Wed, Dec 20, 2000 at 05:23:20PM -0300, Martin A. Marques wrote:
>Hi, I have this table on postgres-7.0.3
>
>CREATE TABLE ciudad (
> id_ciudad SERIAL,
> ciudad VARCHAR(60)
>);
>
>GRANT ALL ON ciudad TO martin;
>
>CREATE INDEX ciudad_idx ON ciudad (ciudad);
>
>And I try to insert a value using this query:
>
>INSERT INTO ciudad (ciudad) VALUES ("Villa Guillermina")
>
>getting as responce the message:
>
>ERROR: Attribute 'Villa Guillermina' not found.
>
>The field ciudad is of type varchar(60), so I don't get why it gives me this
>message.
>
>Any ideas?
>
>
>--
>System Administration: It's a dirty job,
>but someone told I had to do it.
>-----------------------------------------------------------------
>Martín Marqués email: martin(at)math(dot)unl(dot)edu(dot)ar
>Santa Fe - Argentina http://math.unl.edu.ar/~martin/
>Administrador de sistemas en math.unl.edu.ar
>-----------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Matt Beauregard | 2000-12-21 05:02:49 | Re: pgsql/jdbc schema viewer needed |
Previous Message | Chris Ian Capon Fiel | 2000-12-21 03:55:44 | Re: Compiling on Win32 |
From | Date | Subject | |
---|---|---|---|
Next Message | Oleg Bartunov | 2000-12-21 05:15:45 | Re: Future beta releases ... |
Previous Message | Ryan Kirkpatrick | 2000-12-21 04:17:05 | Re: [HACKERS] PostgreSQL pre-7.1 Linux/Alpha Status... (fwd) |