From: | Antonio Mármol Albert <toni(at)infurma(dot)es> |
---|---|
To: | pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
Subject: | [Pgsql-ayuda] Re: [Pgsql-ayuda] RE: [Pgsql-ayuda] ¿Cómo se come esto? |
Date: | 2002-11-27 15:49:34 |
Message-ID: | 20021127164934.A1515@infurma.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
El miércoles 27 de noviembre de 2002 (12:27), Adrián Caldeiro escribió:
> Proba con esto, es decir el id entre comillas simples.
>
> habitat=# SELECT id, marca FROM empresas WHERE id='21293';
habitat=# SELECT id, marca FROM empresas WHERE id='21293';
id | marca
----+-------
(0 rows)
Lo mismo... ¿qué extraño, no?
> -----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
>
> _______________________________________________
> Pgsql-ayuda mailing list
> Pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx
> http://tlali.iztacala.unam.mx/mailman/listinfo/pgsql-ayuda
--
Antonio Mármol Albert ( toni(at)infurma(dot)es )
http://www.infurma.es
From | Date | Subject | |
---|---|---|---|
Next Message | Antonio Mármol Albert | 2002-11-27 15:53:29 | [Pgsql-ayuda] Re: [Pgsql-ayuda] ¿Cómo se come esto? |
Previous 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 |