+ 2

how change all of null fiulds of the table to zero?

problem: without field name!

9th Nov 2017, 10:45 AM
Sepehr Jafari
Sepehr Jafari - avatar
4 ответов
+ 33
update <table> set <field name> =0 where <field name> is null ; //example ::: update employee set salaray = 0 where salary is null ; update employee set name ="no name" where name is null ; //hope it helps ☺
9th Nov 2017, 10:48 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 30
i know only for single field , for more fields u can repeat the piece of code or u must look for another answer
9th Nov 2017, 10:57 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
there is many of field !!!
9th Nov 2017, 10:51 AM
Sepehr Jafari
Sepehr Jafari - avatar
+ 2
i donw know name of fields. :((
9th Nov 2017, 11:05 AM
Sepehr Jafari
Sepehr Jafari - avatar