A Ajws Member Licensed User Feb 22, 2018 #1 Hi all, help... how to save character esc / or \ in sqlite database ? thank y
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2018 #2 Always use parameterized queries and you will never need to escape anything: B4X: SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?, ?)", Array("some text", ",./,'")) Upvote 0
Always use parameterized queries and you will never need to escape anything: B4X: SQL1.ExecNonQuery2("INSERT INTO table1 VALUES (?, ?)", Array("some text", ",./,'"))
A Ajws Member Licensed User Feb 23, 2018 #3 yes...thank you Erel, how about update query ? How can i implement it ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 23, 2018 #4 B4X: SQL1.ExecNonQuery2("UPDATE table1 SET column1 = ?, column2 = ? WHERE column3 = ?", Array(x, y, z)) Upvote 0
B4X: SQL1.ExecNonQuery2("UPDATE table1 SET column1 = ?, column2 = ? WHERE column3 = ?", Array(x, y, z))