A anaylor01 Well-Known Member Licensed User Longtime User Aug 12, 2011 #1 How do you update a value in a column to null? I am trying the statement below but that doesn't work. B4X: SQL1.ExecNonQuery2("UPDATE List Set List = 'NULL', Date = ? WHERE ID = ?", Array As String(DateTime.Date(now),i))
How do you update a value in a column to null? I am trying the statement below but that doesn't work. B4X: SQL1.ExecNonQuery2("UPDATE List Set List = 'NULL', Date = ? WHERE ID = ?", Array As String(DateTime.Date(now),i))
Erel B4X founder Staff member Licensed User Longtime User Aug 12, 2011 #2 NULL is not a string. Your query should be: B4X: UPDATE List SET List = NULL, ... Upvote 0