943,946 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 3082
  • MySQL RSS
Apr 7th, 2007
0

Python Tuples and Mysql Query

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sliver_752 is offline Offline
7 posts
since Nov 2006
Apr 15th, 2007
0

Re: Python Tuples and Mysql Query

SQL lingo is about as simple as it gets. Don't expect any fancy functions from it.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: DB design help
Next Thread in MySQL Forum Timeline: mysql and php display commands help needed





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC