> I am wondering how to retrieve a collection of columns within a table, > whilst using the standard python dbapi2 functionality.
Do you mean cursor.description? cursor = connection.cursor() cursor.execute('select * from blog_post where 1 = 0') for col in cursor.description: print col Each col is a 7-item sequence containing column name, type_code, display_size, internal_size, precision, scale, and null_ok) http://www.python.org/dev/peps/pep-0249/ -Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---