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: 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 Subject: Re: MySQLdb Help Date: Tue, 17 Sep 2013 19:41:48 -0400 Organization: IISS Elusive Unicorn References: <7w1u4nzyrh.fsf@benfinney.id.au> 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Tue, 17 Sep 2013 13:57:40 +0530, Venkat Addala 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/