I have a large table with alot of column and I want to check if any column is empty
The way that i aproach this is by writing the query and check very column one by one, but it is not a good practice for tables that have more than 20 columns, the query will be to long and tiring to write
Select * from Table_name where `col1` = '' or `col2` = '' or `col3` = '' or `col3` = '' or `col4` = '' or `col5` = '' or `col6` = '' or `col7` = '' or ....... `col20` = ''
Is there any "Loop like" query to loop over all columns names without writing them in the query and check them one by one?
Edit For people marked my question as duplicated:
My question asking to check all column at once if they are Null or empty not only one column