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

Re: Re: Re: Abstracting sql

by edoc (Chaplain)
on Jul 31, 2003 at 07:38 UTC ( [id://279505]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    __PACKAGE__->set_sql( list => "select uname,fname,sname from users" );
    
    ...
      $sth->execute();
      return $sth->fetchall_arrayref({});
    }
    
  2. or download this
    my @users = My::CDBI::User->list;
    
  3. or download this
    my $user = My::CDBI::User->retrieve(123);
    $user->fname('Fred');
    $user->sname('Flintstone');
    $user->update;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-03-28 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found