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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -