471,596 Members | 849 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,596 software developers and data experts.

pysqlite2 fetching from select different than pysqlite?

Hi All,

I have some old pysqlite 1.x code that uses a pattern like this:

cu.execute('SELECT weight FROM weights WHERE samplename="foo")
row = cu.fetchone()

It seems like lookups by name are no longer supported in pysqlite2. Is
that true? And if not, and I want to do a SELECT * FROM table and go
through name by name, how can I do this?

Hopefully this is not a FAQ somewhere that I've overlooked!


Jul 27 '06 #1
0 979

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Gerhard Haering | last post: by
5 posts views Thread by Michele Simionato | last post: by
1 post views Thread by qvx | last post: by
3 posts views Thread by lolmcbride | last post: by
22 posts views Thread by Sandman | last post: by
4 posts views Thread by Tilman Kispersky | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.