Help for this page

Select Code to Download


  1. or download this
    my $d = DBI->connect( 'stuff', 'user', 'pass' )
      || die("couldn't connect to database");
    my ($min,$max) = $d->selectrow_array(
    "SELECT min(id),max(id) from images where foo like 'bar%'"
    )
    
  2. or download this
    mysql> SELECT min(id),max(id) from images where foo like 'bar%';
    +---------+---------+
    ...
    +---------+---------+
    1 row in set (0.59 sec)