Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 pondering the Monastery: (12)
As of 2015-07-31 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls