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..

 



Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo! --0-896338801-1033464533=:67666-- From roserachjose@yahoo.com Mon Oct 7 10:41:13 2002 From: roserachjose@yahoo.com (roslyn jose) Date: Mon, 7 Oct 2002 02:41:13 -0700 (PDT) Subject: [meta-sig] select statement for python-mysql Message-ID: <20021007094113.44082.qmail@web40705.mail.yahoo.com> --0-642801737-1033983673=:43611 Content-Type: text/plain; charset=us-ascii 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 --------------------------------- Do you Yahoo!? Faith Hill - Exclusive Performances, Videos, & more faith.yahoo.com --0-642801737-1033983673=:43611 Content-Type: text/html; charset=us-ascii

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



Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com --0-642801737-1033983673=:43611-- From mclay@nist.gov Mon Oct 7 14:57:10 2002 From: mclay@nist.gov (Michael McLay) Date: Mon, 7 Oct 2002 09:57:10 -0400 Subject: [meta-sig] select statement for python-mysql In-Reply-To: <20021007094113.44082.qmail@web40705.mail.yahoo.com> References: <20021007094113.44082.qmail@web40705.mail.yahoo.com> Message-ID: <200210070957.10883.mclay@nist.gov> This question should be directed to the db-sig, not to the meta sig. db-sig@python.org On Monday 07 October 2002 05:41 am, roslyn jose wrote: > hi, > > im facing a problem with the syntax in python-mysql. this is my code: > > The syntax for the string substitution needs to have a '%' instead of a ',' 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 > > > > --------------------------------- > Do you Yahoo!? > Faith Hill - Exclusive Performances, Videos, & more > faith.yahoo.com From roserachjose@yahoo.com Mon Oct 21 09:22:09 2002 From: roserachjose@yahoo.com (roslyn jose) Date: Mon, 21 Oct 2002 01:22:09 -0700 (PDT) Subject: [meta-sig] accpeting wild characters from command line Message-ID: <20021021082209.27388.qmail@web40703.mail.yahoo.com> --0-2084532784-1035188529=:24693 Content-Type: text/plain; charset=us-ascii 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 --------------------------------- Do you Yahoo!? Y! Web Hosting - Let the expert host your web site --0-2084532784-1035188529=:24693 Content-Type: text/html; charset=us-ascii

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



Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site --0-2084532784-1035188529=:24693-- From nobody@maui.dnsvault.com Wed Oct 30 01:26:57 2002 From: nobody@maui.dnsvault.com (Nobody) Date: Tue, 29 Oct 2002 20:26:57 -0500 Subject: [meta-sig] A larger gold balance! Message-ID: Untitled

Hello all E-Gold and EVOcash account holders!

   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.html

All additional information you can get here:

http://www.yourgoldchance.net/

If you would like to contact us, please send us an email:

yourgoldchance@yourgoldchance.net

Our 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.