i have these table_1:
A |B |C |D
19 | | |
238| |1 |AS
45 |23| |
196| | |
I need to delete records with fields B , C and D empty.
Is it ok?
Delete From table_1 Where C is null and B is null and D is null;
But if I have another table with multiple fields: A,B,C,D,E,F....Z,AA,AB.....BA...
What would be the best way in this case?
You can use COALESCE :
Delete From table_1
Where COALESCE(A,B,C,D,E,F,....,Z,AA,AB,.....,BA) is null;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.