Hi,

On Tue, Nov 18, 2008 at 9:39 PM, TheShadow <[EMAIL PROTECTED]> wrote:

>
> All I need to be able to do is the following. (I don't need, can't
> use, and/or don't want ORM)
>
> query = 'SELECT col FROM table where col = :col'
> params = {'col':1} # and/or params = [{'col':1},{'col':2}]
> OR
> query = 'INSERT INTO table(col1,col2) VALUES(:col1,col2)'
> params = {'col1':1,'col2':2} # and/or params [{'col1':1,'col2':2},
> {'col1':3,'col2':4}]


The SQL Expression Tutorial has all this laid out:

http://www.sqlalchemy.org/docs/05/sqlexpression.html

I encourage you to make your way through that. It covers simple inserting as
well as selects.

Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to