Help for this page

Select Code to Download


  1. or download this
    my $filter = {'_id' => 'userid'};
    my $update = { '$inc' => { 'seq' => 1} };
    ...
    $col->update($filter,$update);
    my $id = $col->find_one($filter)->{'seq'};
    print $id;