Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Before asking a database related question ...

by gmax (Abbot)
on Jun 09, 2003 at 22:47 UTC ( [id://264485]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $column = $sth->fetchrow_array();
    
  2. or download this
    my ($column) = $sth->fetchrow_array();
    
  3. or download this
    my $count = @array; # gets the array size
    my ($first) = @array # gets the first item
    
  4. or download this
    $dbh->trace(2);
    my $sth=$dbh->prepare(qq{SELECT name from emp where ID = ?});
    $sth->execute(qq("ABC123"));
    $dbh->trace(0);
    
  5. or download this
    SELECT name from emp where ID = "'ABC123'";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://264485]
Approved by larsen
Front-paged by particle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2024-04-18 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found