Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54339
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: MySQLdb Help |
| Date | 2013-09-17 19:41 -0400 |
| Organization | IISS Elusive Unicorn |
| References | <CAAZP3kmMN0=f29ScOm9rMsLt2iVjU_kRNCU4E27pLZBuQoiW5g@mail.gmail.com> <7w1u4nzyrh.fsf@benfinney.id.au> <CAAZP3k=+twd8LAdh_oBp80ukSYdqxDB8bAQJDoSxPRFZo6B21g@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.94.1379461317.18130.python-list@python.org> (permalink) |
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
Re: MySQLdb Help Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-17 19:41 -0400
csiph-web