mysql - SQL select distinct rows and ignore row if blank -
i using sql query fetch rows table. want select rows distinct values , if there no value entered row, row should not there.
select distinct meta_value `wp_postmeta` meta_key = "aaa";
this query using, getting distinct rows query getting blank row.
simple solution:
select distinct meta_value `wp_postmeta` meta_key = "aaa" , meta_value != "";
Comments
Post a Comment