Sort by order of values in a MySQL select statement IN clause?
Answers
Answered by
1
Answer:
Explanation:
ORDER BY has two values:
1) ASC means Ascending Order.
2) DESC means Descending Order.
The query goes as under:
Suppose we have table 'student' with fields id,name,marks
$query = "SELECT * FROM student ORDER BY marks ASC" ;
Syntex:
$query = "SELECT * FROM table_name ORDER BY field_name ASC/DESC"
Similar questions
Science,
5 months ago
CBSE BOARD XII,
5 months ago
Math,
5 months ago
Science,
10 months ago
Computer Science,
1 year ago
English,
1 year ago