Στις 5/11/2013 7:41 μμ, ο/η Steven D'Aprano έγραψε:
On Tue, 05 Nov 2013 19:06:25 +0200, Nick the Gr33k wrote:

ALL I WANT IT TO DO IS JUST

1. RETRIEVE 3 COLUMNS THAT CONSIST OF 3 LONG STRINGS 2. CONVERT LONG
STRINGS TO LISTS
3. ADD SOME CURRENT VALUES TO THOSE LISTS 4. CONVERT FROM LISTS TO LONG
STRINGS SO I CAN STORE SUCCESSFULLY LIST PYTHON DATATYPE TO MYSQL SCALAR
STRING.


You cannot do this with Python. You should use a better language more
suited to you. Try this:

http://php.net/manual/en/tutorial.php


I hope that you will be much happier with this, since you are struggling
to get Python to work the way you want it to.




--
Steven, i want switch to php, i uses to start with php, then perl and now i ended up with python.

All this problem arises because MySQL's hasn't got a datatype able to store an array of elements, a list.

Is there some other database, sql connector i can use except 'pymysql' that supports a "collection" record type?

postgresql or somethign similar?
If it does i will switch to that and avoid these tedius convertions from long strings => list and backwise.

Somehting that can just take Python's datatypes 'list' or 'tuple' or 'dict' as tehy are and just store them into the database convertionless.


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to