Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54339

Re: MySQLdb Help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'doing?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'solution,': 0.09; 'subject:Help': 0.11; 'ben,': 0.16; 'ignoring': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:home': 0.24; 'header:X -Complaints-To:1': 0.27; "i'm": 0.30; 'sep': 0.31; 'done': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'deleting': 0.60; 'back': 0.62; 'received:108': 0.93; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: MySQLdb Help
Date Tue, 17 Sep 2013 19:41:48 -0400
Organization IISS Elusive Unicorn
References <CAAZP3kmMN0=f29ScOm9rMsLt2iVjU_kRNCU4E27pLZBuQoiW5g@mail.gmail.com> <7w1u4nzyrh.fsf@benfinney.id.au> <CAAZP3k=+twd8LAdh_oBp80ukSYdqxDB8bAQJDoSxPRFZo6B21g@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-108-73-119-170.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 6.00/32.1186
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.94.1379461317.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379461317 news.xs4all.nl 15893 [2001:888:2000:d::a6]:36813
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54339

Show key headers only | View raw


On Tue, 17 Sep 2013 13:57:40 +0530, Venkat Addala <venkat.boffin@gmail.com>
declaimed the following:

>hey Ben,
>
>Thanks for your solution, i am done with this before, now i'm having
>problem after deleting \n and extra spaces, i want to update it back it
>again to mysql db.
>

	For the moment, ignoring "extra spaces"... What does...

cursor.execute("update gene set descrip = replace(descrip, '\n', ' '")
conn.commit()

... result in doing?

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: MySQLdb Help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-17 19:41 -0400

csiph-web