Parameterized SQL statement: Difference between revisions
no edit summary
No edit summary |
|||
Line 571:
=={{header|Mathematica}}/{{header|Wolfram Language}}==
conn=OpenSQLConnection[JDBC["ODBC(DSN)",
▲<lang Mathematica>Needs["DatabaseLink`"];
SQLExecute[conn,"UPDATE players SET name = `1`, score = `2`, active = `3` WHERE jerseyNum = `4`", {SQLArgument["Smith, Steve",42,True,99]}]
▲conn=OpenSQLConnection[JDBC["ODBC(DSN)", "testdb"], "Username" -> "John", "Password" -> "JohnsPassword"];
CloseSQLConnection[conn];</lang>
|