Hi everybody, I'm trying to compare in a sentence like this (using PostGres 8.3) : select * from myTable where id_integer IN ('1,2,3,4') I want to get the records which key "id_integer" is 1 or 2 or 3 or 4. the type od my "id", of course, is integer. I've tried many differents ways but I cannot get the result I want. I would like to cast the integer parameter I cannot change the part after "IN" it has to be a "string list". Do I have to use a function ? I would like not to use it. How can I compare a key (integer) with a lists of values ? I'm desperate THANX IN ADVANCE --
José Ignacio Méndez Yanes Área de Operaciones / Area of Operations Phone: +34 916 011 373 / +34 946 416 066 Mobile: +34 666 431 099 Fax: +34 916 011 372 / +34 944 318 286
Síguenos en: Twitter - Facebook - LinkedIn - YouTube
AVISO LEGAL ANDAGO CONSULTING SL / ANDAGO INGENIERÍA, SL le informa que los datos facilitados por Ud. y utilizados para el envío de esta comunicación serán objeto de tratamiento automatizado o no en nuestros ficheros, con la finalidad de gestionar la agenda de contactos de nuestra empresa y para el envío de comunicaciones profesionales por cualquier medio electrónico o no. Vd. podrá en cualquier momento ejercer el derecho de acceso, rectificación, cancelación y oposición en los términos establecidos en la Ley Orgánica 15/1999. El responsable del tratamiento es ANDAGO CONSULTING SL / ANDAGO INGENIERIA SL, con domicilio en C/ ALCALDE ANGEL ARROYO, 10, 28904, Getafe (Madrid). El contenido de esta comunicación, así como el de toda la documentación anexa, es confidencial y va dirigido únicamente al destinatario del mismo. En el supuesto de que usted no fuera el destinatario, le solicitamos que nos lo indique y no comunique su contenido a terceros, procediendo a su destrucción. DISCLAIMER The content of this communication and any attached information is confidential and exclusively for the use of the addressee. If you are not the addressee, we ask you to notify to the sender and do not pass its content to another person, and please be sure you destroy it. |
Title: Firma Correo
- [SQL] newbie question * compare integer in a "where I... Jose Ig Mendez
- [SQL] newbie question * compare integer in a "wh... Jose Ig Mendez
- Re: [SQL] newbie question * compare integer in a ... Thomas Kellerer
- Re: [SQL] newbie question * compare integer in a ... Pavel Stehule
- Re: [SQL] newbie question * compare integer i... Jose Ig Mendez