/gist:32bde3081e96e6a0fbac Secret
Created
December 16, 2014 12:51
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| when ('T') | |
| { | |
| my $sth; | |
| try { | |
| $sth= $bazaDanych.prepare("Select max(id) from $table "); | |
| } | |
| $sth.execute; | |
| my $row; | |
| $row = $sth.fetchrow_arrayref() ; | |
| $row[0]++; | |
| my $query = "Insert into $table Values('$row[0]', '$imie', '$nazwisko', '$telefon', '$typTel', '$miasto', '$ulica' )"; | |
| say $query; | |
| #$bazaDanych.do("$query"); | |
| say "Zmiany zostały wprowadzone poprawnie!"; | |
| say ""; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment