tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,19 @@
|
|||
use IO;
|
||||
use ODBC;
|
||||
|
||||
bundle Default {
|
||||
class Sql {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
conn := Connection->New("ds", "user", "password");
|
||||
if(conn <> Nil) {
|
||||
sql := "UPDATE players SET name = ?, score = ?, active = ? WHERE jerseyNum = ?";
|
||||
pstmt := conn->CreateParameterStatement(sql);
|
||||
pstmt->SetVarchar(1, "Smith, Steve");
|
||||
pstmt->SetInt(2, 42);
|
||||
pstmt->SetBit(3, true);
|
||||
pstmt->SetInt(4, 99);
|
||||
pstmt->Update()->PrintLine();
|
||||
conn->Close();
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue