Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Before asking a database related question ...

by gmax (Abbot)
on Jun 09, 2003 at 22:47 UTC ( #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
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? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-09-17 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls