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

SQL tasks and their Class::DBI equivalents

Deleting Records

  • SQL

        DELETE FROM nomination
    
        WHERE id = 1
    
  • Class::DBI

        $nomination = Nomination->retrieve(1);
        $nomination->delete;
    

 

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