http://www.python.org/doc/topics/database/
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>Question: Is there a DB-API module that can directly connect to the
>database server?
There certainly is for MySQL, which is what I mostly use.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> I need to execute sql command using a "here document" like in unix.
>
> os.popen("osql", "w").write("""\
> select * from table
> go
> """)
>
> how can i pipe these result of the s
hi
I need to execute sql command using a "here document" like in unix.
os.popen("osql", "w").write("""\
select * from table
go
""")
how can i pipe these result of the select into a variable?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 2005-01-11 at 18:46, harold fellermann wrote:
> On 11.01.2005, at 11:34, Nader Emami wrote:
> > Would somebody help me how i can write the 'here document' in
> > Python script please? I have a csh script in which a program
> > is invoked with some argume
harold fellermann wrote:
f = open("/bin/exe.x","w")
print >>f , """CategoryY = GRIB
etc.
"""
This would overwrite the existing /bin/exe.x ...
HtH, Roland
--
http://mail.python.org/mailman/listinfo/python-list
On 11.01.2005, at 11:34, Nader Emami wrote:
Would somebody help me how i can write the 'here document' in
Python script please? I have a csh script in which a program
is invoked with some argument in the form of here document:
/bin/exe.x << End_Here
CategorY = GRIB
etc.
End_Here
L.S.,
Would somebody help me how i can write the 'here document' in
Python script please? I have a csh script in which a program
is invoked with some argument in the form of here document:
/bin/exe.x << End_Here
CategorY = GRIB
etc.
End_Here
I translate this script to Python and