Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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