2006/1/5, Robert Leftwich <[EMAIL PROTECTED]>:
> limodou wrote:
> > I want to know how to create index, need I create it using db-api
> > cursor to do that?
> >
>
> engine.execute('CREATE INDEX idxName ON tblName (col1, col2)')
>
> works for me.
>
I found that the execute method need at least two parameters, so I have to use:
engine.execute('CREATE INDEX idxName ON tblName (col1, col2)', ())
can the second parameter be default () or {}?
Below is execute method definition:
def execute(self, statement, parameters, connection=None, cursor=None,
echo=None, typemap=None, commit=False, **kwargs)
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users