An Introduction to Class::DBI - Comparing DBI and Class::DBI 14

SQL tasks and their Class::DBI equivalents

Finding A Record (by any field)

  • SQL

        SELECT * FROM Nomination
         WHERE type = 'Best Editing'
    
  • Class::DBI

        @films = Film->search(type => 'Best Editing');
    

continued...

 

YAPC::Canada << Previous | Index | Next >>
Copyright © 2003 Michael Graham