From: | Adrián Caldeiro <caldeiro(dot)uylug(at)adinet(dot)com(dot)uy> |
---|---|
To: | <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx> |
Subject: | [Pgsql-ayuda] RE: [Pgsql-ayuda] ¿Cómo se come esto? |
Date: | 2002-11-27 15:27:00 |
Message-ID: | 018701c29629$6f559360$2205a8c0@sv034.in.bibliored.edu.uy |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Proba con esto, es decir el id entre comillas simples.
habitat=# SELECT id, marca FROM empresas WHERE id='21293';
-----Mensaje original-----
De: Antonio Mármol Albert <toni(at)infurma(dot)combios(dot)es>
Para: pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
<pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
Fecha: Miércoles 27 de Noviembre de 2002 12:19 PM
Asunto: [Pgsql-ayuda] ¿Cómo se come esto?
>(Consulta 1)
>
>habitat=# SELECT id, marca FROM empresas WHERE marca = 'Muebles Celda';
> id | marca
>-------+---------------
> 21293 | Muebles Celda
>
>
>(Consulta 2)
>
>habitat=# SELECT id, marca FROM empresas WHERE id=21293;
> id | marca
>----+-------
>(0 rows)
>
>
>(Estructura)
>
> id | integer | not null default nextval('empresas_id_seq'::text)
> marca | character varying(128) |
>
>
>No entiendo porqué la segunda consulta no devuelve ninguna fila.
>
>¿Alguna explicación? ¿Base de datos corrupta?
>
>Gracias
>
>--
>Antonio Mármol Albert ( toni(at)infurma(dot)es )
>http://www.infurma.es
>_______________________________________________
>Pgsql-ayuda mailing list
>Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
>http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime N. Charles Treviño | 2002-11-27 15:30:53 | Re: [Pgsql-ayuda] Como veo todos los campos de una Base de datos |
Previous Message | Antonio Mármol Albert | 2002-11-27 15:22:34 | [Pgsql-ayuda] ¿Cómo se come esto? |