Re: Help don't know what problem is Newbie

2006-08-24 Thread len
Sorry for the stupid question. I was fixated on the SQL. Thanks Len Sumnler Peter Otten wrote: > len wrote: > > > > Have the following code: > > Short variable names increase the likelihood of name clashes: > > > c = db.cursor() > > > c = '' > > > c = csz[0] > > >

Re: Help don't know what problem is Newbie

2006-08-23 Thread Peter Otten
len wrote: > Have the following code: Short variable names increase the likelihood of name clashes: > c = db.cursor() > c = '' > c = csz[0] > c = csz[0] + ' ' + csz[1] > c.execute("insert into Producer \ > (Producer_Sid,

Help don't know what problem is Newbie

2006-08-23 Thread len
Have the following code: import os import csv import re import mx.ODBC import mx.ODBC.Windows currdir = os.getcwd() db = mx.ODBC.Windows.DriverConnect('dsn=UICPS Test') c = db.cursor() sid = 315 matchstr = re.compile(r'\(*\)*-*,*') reader = csv.reader(open(currdir + r'\\IBI Brokers List 8-21-06.