Nasıl benim VEYA ifadeler olarak aynı sırayla mysql sonuçları sipariş edebilirsiniz?

0 Cevap php

Zaten onların alaka olarak azalan düzende sıralanır kimlikleri bir dizi var, ama ben her kimliği bilgi almak için bir sorgu yapmak gerekir.

Nasıl onlar benim nerede beyanı sırayla böylece sonuçları dönmek için alabilirim?

SELECT DISTINCT `content_object_set_instances`.`id` AS content_object_set_instance_id, `content_object_set_instances`.`title` AS content_object_set_instance_title, `content_object_set_instances`.`name` AS content_object_set_instance_name, `content_object_set_instances`.`description` AS content_object_set_instance_description FROM (`content_object_set_instances`) WHERE `content_object_set_instances`.`id` = 213 OR `content_object_set_instances`.`id` = 216 OR `content_object_set_instances`.`id` = 212

Şu anda onlar gibi dönüyor:

ID  | title |  name  |  description
212  | Mr Spot  | name...  | description...
213  | Bamboo  | name...  | description...
216  | Beautious  | name...  | description...

0 Cevap