Gossamer Forum
Quote Reply
MYSQL IN()
I am shure we had this before, but i cant search for IN. :)

I have a field with numbers seperated by ","
And i want a global that takes data for this ids.

Found it:

Code:

my @values = split(',', $postids);
...
GT::SQL::Condition->new (post_id => IN => \@values)

Last edited by:

Robert: Dec 18, 2016, 9:57 AM
Subject Author Views Date
Thread MYSQL IN() Robert 3445 Dec 18, 2016, 9:39 AM
Thread Re: [Robert] MYSQL IN()
el noe 3351 Dec 19, 2016, 2:39 AM
Thread Re: [el noe] MYSQL IN()
Robert 3344 Dec 19, 2016, 3:59 AM
Post Re: [Robert] MYSQL IN()
Andy 3329 Dec 19, 2016, 4:40 AM