bizactuator has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way that $_checkifposted would have the last_inserted_id? or is it just true or false?#.... other code for this table is above... $_pstmt .= ',' if $_pstmt; $_pstmt .= '`all_details` = ?'; push(@_pplaceholder,"$_alldotnot"); $_pstmt .= ',' if $_pstmt; $_pstmt .= '`admin_notes` = ?'; push(@_pplaceholder,"Order Details"); $_pstmt = "INSERT INTO `accttrans` SET $_pstmt"; $_checkifposted = $dbh->do($_pstmt, undef, @_pplaceholder);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inserting into mysql and getting inserted id at the same time
by choroba (Cardinal) on Mar 24, 2021 at 15:26 UTC | |
by Marshall (Canon) on Mar 25, 2021 at 20:19 UTC | |
by choroba (Cardinal) on Mar 25, 2021 at 20:28 UTC | |
by Marshall (Canon) on Mar 25, 2021 at 21:07 UTC | |
|
Re: Inserting into mysql and getting inserted id at the same time
by Anonymous Monk on Mar 27, 2021 at 04:39 UTC | |
|
Re: Inserting into mysql and getting inserted id at the same time
by Anonymous Monk on Mar 25, 2021 at 14:13 UTC |