Jump to content

[SOLVED] An array in the where clause - possible?


khunjack

Recommended Posts

Hi,

 

I'll have a session array with growing numbers of id's.

 

array = (2222,4444,32323,...}

 

The records with these id's need to be excluded ... e..  ' .... id!=2222 and id!= 4444 '

 

Sure could build this querey via a loop.

 

Question: Is there a better/shorter way in the WHERE Clause ???

 

??? WHERE id!={array} ... ???

 

Thanks for every feedback

Jack

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.