Help for this page

Select Code to Download


  1. or download this
    select ? from ... where ..
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    my $sth=$dbh->prepare('select ? as answer');
    $sth->execute(42);
    $sth->dump_results();
    
  3. or download this
    '42'
    1 rows
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    $sth->bind_param(1,42,SQL_INTEGER);
    $sth->execute();
    $sth->dump_results();
    
  5. or download this
    42
    1 rows