Could find much on this, so:
I have this
my @reviews = LSRfm::Database::CMS::Articles->search_like(section => 'reviews_p_%', { order_by => 'date DESC, time DESC' } );and just want to add a sql limit, like:
my @reviews = LSRfm::Database::CMS::Articles->search_like(section => 'reviews_p_%', { order_by => 'date DESC, time DESC' }, LIMIT 2 );but the limit does not work, suggestions/solutons please
The contents of LSRfm::Database::CMS::Articles is irrelevant
Next Question
How would i do a section => 'reviews_p_%' search using the abstract search as suggested, ive tried a few derivations, with either an error or no data
Solved by myself
my @reviews = LSRfm::Database::CMS::Articles->search_where( section => { 'LIKE', 'reviews_p_%' } );
New Problem
my @reviews = LSRfm::Database::CMS::Articles->search_where( { section => { 'LIKE', 'reviews_p_%' } }, { order_by => "date DESC, time DESC", limit => 2 } );
doesent work? - help please
UPDATE
The limit command that you can use from class::dbi::abstractsearch, isnt working...., and im not getting anything from the error log...
Sorted forget to limit_dialect, and set the offset, one should read cpan properly :-)
Hang On still not working its not limiting (im using mysql)
Final Update
Sall working, laggy server day :-)
Thanks every one for the help
In reply to search like by barrycarlyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |