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

Re^5: DB persistence framework for Perl Classes

by tadamec (Beadle)
on Oct 18, 2004 at 01:40 UTC ( [id://400024]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $item = db::Inventory::Item->retrieve( 15 );
    if( $item ) {
      $item->quantity( 15 );
    }
    
  2. or download this
    -- Oracle: 
    INSERT INTO my_table 
    ...
    -- Postgres:
    INSERT INTO my_table
    VALUES( nextval( 'my_sequence' ), 'Some Value' );
    
  3. or download this
    --MySQL
    INSERT INTO my_table( seq_field, val_field )
    ...
    INSERT INTO my_table( val_field )
    VALUES ( 'Some Value' );
    SELECT SCOPE_IDENTITY();
    
  4. or download this
    my $newRecord = db::Table->create( { val_field => 'Some Value' } );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found