Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE node (
      id int(10) NOT NULL auto_increment,
    ...
      parent int(10) default '0',
      PRIMARY KEY  (id)
    );
    
  2. or download this
    use strict;
    use warnings;
    ...
    sub get_last_id {
        return $dbh->selectcol_arrayref('SELECT last_insert_id()')->[0];
    }