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

SQL tasks and their Class::DBI equivalents

Deleting a Range of Records

  • SQL

        DELETE FROM nomination
          WHERE year = 1999
          AND   type = 'Best Picture';
    
  • Class::DBI

        Nomination->delete(year => 1999, type => 'Best Picture');
    

 

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