Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

2Re: Can SQL be used without a database?

by jeffa (Bishop)
on Dec 30, 2003 at 19:55 UTC ( [id://317761]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use DBI;
    use Data::Dumper;
    ...
    $sth->execute(@$_) for [1,'moe'],[2,'curly'],[3,'larry'];
    
    print Dumper $dbh->selectall_arrayref('select * from foo');
    
  2. or download this
    $dbh->do('create table foo(id integer primary key, name char(64))');
    
    my $sth = $dbh->prepare('insert into foo(name) values (?)');
    $sth->execute($_) for qw(moe curry lary);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://317761]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found