🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #320

Re: mysql + python

#320
From: Adam Przybyla
Date: Tue, 10 Dec 2002 12:26
13 lines
1371 bytes
Ogryzek <slukas5@poczta.onet.pl> wrote:
> Witam
> Mam taki skrypt
>    max_id = "select max(id) from pub"
>    max_id_cursor = db.cursor()
>    max_id_cursor.execute(max_id)
>    result = max_id_cursor.fetchall()
> i tutaj zaczynaja sie schody. Chcialbym wyciagac ta jedna wartosc i dodawac
> 1. Probowalem juz roznych sposobow, ale nie moge sie dobrac do tej wartosci.
> Za wszelkie sugestie z gory dzieki
	prosciarstwo: int(result[0][0])
Z powazaniem
								Adam Przybyla
Technical Details
Message-ID: <at4mi4$fo6$1@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
References: <at4cc9$fs7$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.man.poznan.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: Adam Przybyla <adam@gliwice.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: mysql + python
Date: Tue, 10 Dec 2002 12:26:53 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 13
Sender: Adam Przybyla <adam@castle.ertel.com.pl>
Message-ID: <at4mi4$fo6$1@news.tpi.pl>
References: <at4cc9$fs7$1@news.onet.pl>
NNTP-Posting-Host: castle.ertel.com.pl
X-Trace: news.tpi.pl 1039523213 16134 195.116.54.3 (10 Dec 2002 12:26:53 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 10 Dec 2002 12:26:53 +0000 (UTC)
User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (Linux/2.4.18 (i686))
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit