I would like to update several entries in a mySQL database which I use in combination with Mathematica. But the following code does not work:
Map[ SQLUpdate[conn, "table_name","column2update", {1}, SQLColumn["selection_column"] = #" ] &, list_with_selection_values]
The column "column2update" is defined as datatype "Boolean". I would like to insert a "1" (= true) into certain entries. "selection_column" contains unique data (in that case stock symbols). I would like to us the "list_with_selection_values" to identify the entries where I change "column2update" to "1".
Does anyone know why my function does not work? All database connections are ok. Thanks!
#
to begin with. $\endgroup$SQLExecute
? I find it easier to use because you can just do straight sql commands. I have also used it withMap
as you are trying to do here. $\endgroup$