سؤال

أريد هذا النوع من الإخراج لجلب task_name من قاعدة البيانات مثل هذا التنسيق giveacodicetagpre.

استعلامي هو giveacodicetagpre.

لذلك أريد إخراج مثل هذا .. giveacodicetagpre.

هل كانت مفيدة؟

المحلول

استخدم هذا giveacodicetagpre.

نصائح أخرى

giveacodicetagpre.

النظام عن طريق تصاعدي

use this

SELECT task_name, section_name, ref_student_id
FROM scores
WHERE ref_student_id = '".$studentid."'
AND section_name = 'sm1'
ORDER BY ltrim(task_name) ASC          //order by should come for ordering....
GROUP BY task_name

instead of

SELECT task_name, section_name, ref_student_id
FROM scores
WHERE ref_student_id = '".$studentid."'
AND section_name = 'sm1'
GROUP BY task_name
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top