showkey
showkey

Reputation: 348

How to change null and empty string in sqlite?

Here is my sqlite databse ,you can see some cell are null or empty string when opening with sqlitemanager.

How can i change all the null and empty string into 0 (zero) in this sqlite database ,not by hand one by one (you can do it in sqlite manager,but it is stupid to change all in one database).

enter image description here enter image description here

Upvotes: 0

Views: 1496

Answers (1)

josepn
josepn

Reputation: 367

UPDATE grade SET d3 = 0
   WHERE d3 IS NULL OR d3 = ''

Upvotes: 1

Related Questions