[Pgsql-ayuda] Re: [Pgsql-ayuda] ¿Cómo se come esto?

From: Antonio Mármol Albert <toni(at)infurma(dot)es>
To: Christian Gonzalez <christiangda(at)cantv(dot)net>
Cc: 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 17:35:32
Message-ID: 20021127183531.A2011@infurma.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

El miércoles 27 de noviembre de 2002 (13:28), Christian Gonzalez escribió:

> Hola a todos,
> esto es fácil, es de tipo texto, y por lo tanto tienes que colocar
> comillas en la búsqueda:
> SELECT id, marca FROM empresas WHERE id='21293';

id es de tipo entero, como indiqué en el email:

> > id | integer | not null default nextval('empresas_id_seq'::text)

Gracias por la ayuda.

>
>
> ----- Original Message -----
> From: "Antonio Mármol Albert" <toni(at)infurma(dot)combios(dot)es>
> To: <pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx>
> Sent: Wednesday, November 27, 2002 11:22 AM
> Subject: [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

--
Antonio Mármol Albert ( toni(at)infurma(dot)es )
http://www.infurma.es

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message J. Mario Oroz 2002-11-27 17:38:10 [Pgsql-ayuda] Re: [Pgsql-ayuda] ¿Cómo se come esto?
Previous Message Cesar Villanueva 2002-11-27 17:11:48 [Pgsql-ayuda] ¿Cómo se come esto?