Help for this page

Select Code to Download


  1. or download this
    # Ask for errors at database handle creation
    my $dbh2 = DBI->connect(
    ...
    
    # Or check your method call
    $dbh2->do($sql) or die "Cannot execute SQL '$sql': $DBI::errstr;
    
  2. or download this
      $dbh2->do(
        qq{alter session set nls_timestamp_format = 'YYYY-MM-DD HH24:MI:SS
    +'}
      ) or die "Can't set timestamp format: $DBI::errstr";