here's what I'm trying to do
SELECT id,`Full Name`,`Social Number` FROM data ORDER BY 'Full Name' ASC
but it seems the order by Full Name
ASC doesn't work. I think it's most probably because of the name which has space. any remedy to this problem?
Try enclosing them in back-ticks like
ORDER BY `Full Name` ASC
HTH
try ORDER BY 2 ASC
2 refers to the second selected column which is FULL NAME
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With