lundi 12 septembre 2016

MySql if distinct print true

I am trying to write a sql statement that will print the id and true if it is distinct false if not. Here is my query

Select Id, IF(Id IS DISTINCT('True', 'False')) from Table;

Aucun commentaire:

Enregistrer un commentaire