Return order of MySQL SHOW COLUMNS

Posted by rich on Stack Overflow See other posts from Stack Overflow or by rich
Published on 2010-03-30T11:34:20Z Indexed on 2010/03/30 11:53 UTC
Read the original article Hit count: 299

Filed under:
|
|

Hey guys. Simple one this, but one I can't seem to find any information on so here goes.

I need to find the columns in a specific table, which is no problem....

SHOW COLUMNS FROM tablename LIKE '%ColumnPrefix%';

But I need to know what order they will be returned, preferable by choosing to order the results ascending alphabetically. I have had no luck with using ORDER BY Field.
Any ideas?

Cheers!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql