954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Python Tuples and Mysql Query

Hello all,

Is there any algorithm to convert a python tuple to MySql query .

Ex:

('*','name','sliver')

should convert to

select [Pri_Key] from [All Tables] where 'name' = 'sliver';

I have been able to do so ... but my algorithm looks very ugly and have to process everything bit by bit.

The query becomes even more complex when i have nested tuples.


Any Ideas?

sliver_752
Newbie Poster
7 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

SQL lingo is about as simple as it gets. Don't expect any fancy functions from it.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You