mysql - Removing Null Values from Multiple Columns -
how remove rows columns have null values?
table example:
custid dob order1 order2 order3 order4 1 xxx null null null null 2 xxx 25 32 27 5 3 xxx null 6 null 3 4 xxx 1 null null null 5 xxx null null null null
i delete rows custid 1 , 5. value in of 4 order columns should kept.
can achieve in statement?
you this:
delete 'your_table' 'order1 null , 'order2' null , 'order3' null , 'order4' null , 'order5' null
Comments
Post a Comment