Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Don Parris
Oops! Didn't mean to reply off-list. On Sat, 11 Jun 2005 23:16:47 +0100 "Alan G" <[EMAIL PROTECTED]> wrote: > HI Don, > > > > > result = Cursor.fetchone() > > > > Con.close() > > > > > > > > # Count the fields > > > > result.num_fields() > > > Should I have done something more like this? > >

Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Kent Johnson
Don Parris wrote: > I'd like to use the result.numfields() function to count the fields on a > given table, but apparently don't quite grasp how to implement it. Below is > my lame attempt. I searched the comp.lang.python group via Google, but > didn't find any relevant info. The MySQLdb User Gu

Re: [Tutor] Counting MySQL Fields

2005-06-11 Thread Alan G
> I'd like to use the result.numfields() function to count the fields on a > given table, but apparently don't quite grasp how to implement it. Below is > my lame attempt. OK, I've never use the numfields function so have no idea how it works nor why I'd want to use it but... > sql = "SELECT * FR

[Tutor] Counting MySQL Fields

2005-06-11 Thread Don Parris
Greetings, I've dabbled in programming/scripting a little, but never really seem to get the hang of it. I thought I'd try out Python for a front-end to my SQL database project. I've worked through the tutorial, and a few others to some extent. At the moment, I'm really just tinkering, but have