How to Write IS NOT NULL in DBIx::Class
I needed to write a query using DBIx::Class tonight that would return rows where a column wasn’t null. The first couple of ways I tried to didn’t work - here’s how to do it:
$result = $schema->resultset('RESULTSET')->search({ column => { '!=' => undef }});
[tags]dbix::class null sql perl[/tags]



Add to del.icio.us
Digg it!
Add to Google Bookmarks
Add to Netscape
Add to Windows Live
Add to Yahoo! My Web
RSS




