From roserachjose@yahoo.com Tue Oct 1 10:28:53 2002 From: roserachjose@yahoo.com (roslyn jose) Date: Tue, 1 Oct 2002 02:28:53 -0700 (PDT) Subject: [meta-sig] retrieving field values from a row in mysql Message-ID: <20021001092853.68283.qmail@web40701.mail.yahoo.com> --0-896338801-1033464533=:67666 Content-Type: text/plain; charset=us-ascii hi, im working with python-mysql and have a problem with retreiving a particular field value from a selected row. this is my bit of code. if someone here could help me out, it would be greatly appreciated. thanks. /* c.execute("""select name,chapters,lang from books where name=%s""",x[3]) bk=c.fetchone() print bk */ here bk holds an entire row, how do i access each induvidual item in that row? i tried treating it like an array, bk[0],bk[1]...but it doesnt work.. --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! --0-896338801-1033464533=:67666 Content-Type: text/html; charset=us-ascii
hi,
im working with python-mysql and have a problem with retreiving a particular field value from a selected row. this is my bit of code. if someone here could help me out, it would be greatly appreciated. thanks.
/*
c.execute("""select name,chapters,lang from books where name=%s""",x[3])
bk=c.fetchone()
print bk
*/
here bk holds an entire row, how do i access each induvidual item in that row? i tried treating it like an array, bk[0],bk[1]...but it doesnt work..
hi,
im facing a problem with the syntax in python-mysql. this is my code:
c.execute("""select vid from verses where book,chapter,number=%s,%s,%s""",(bk,chap,i))
and i get the error as :"u have an error in your SQL syntax near chapter,number=1,21)
someone pls help me here. thanks alot
regards,
roslyn
hi,
i have a list of .txt files that i would like to enter from command line, but as its a hassle to write all the names i would like to just type in *.txt at the python command line. could someone tell me how i can have python interpret that wils char, is there any built in function?? thanks.
regards,
roslyn
We here at Your Gold Chance are honest, reliable and willing to help you achieve what you want most..... A larger e-gold balance! We have developed a program to give you a smart return without the usual wait of hyip's. For speed and convenience we utilize online digital currencies. We accept E-Gold and EVOcash.
All investments are based on a 33 week plan. We pay you 10% per week for a total of 33 weeks. You first payment starts 7 days after you invest and your capital is returned to you at the end of the 33th week.
The minimum Investment is $25.00USD and the maximum Investment is $25,000 USD. Do not send us any amount outside these parameters otherwise your investment will be returned without profit.
If you are interested in this program visit site:
http://www.yourgoldchance.net/invest.htmlAll additional information you can get here:
http://www.yourgoldchance.net/If you would like to contact us, please send us an email:
yourgoldchance@yourgoldchance.netOur company will continue its best efforts to make good on every payments on our program without any delay.
Thanks for choosing Your Gold Chance!
Karen Andreozzi,
President
Yor Gold Chance, Inc.