[DB-SIG] Sample Code anyone?

Nides Nides" <Nides@mediaone.net
Fri, 30 Mar 2001 06:32:37 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C0B8E3.36398480
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello-

I have tried connecting to a Popy database via python and send query's =
to the db, but i can not get it to work. I am not quite sure how to use =
the fetchxxx() as well.

Could someone please compose some sample could for me that would contain =
how to connect and send a query to a PoPy database using theses specs:

database name: Sampledb
host:thales
port:5432
user: dbuser
password: xyz

This is what the database looks like... Has a column named friends and =
it contains there first and last name and there phone number.=20
---------------
Friends    =20
---------------
last_name=20
----------------
first_name=20
----------------
phone      =20
----------------

Thank You Very Much!

-Daivd

------=_NextPart_000_001B_01C0B8E3.36398480
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello-</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have tried connecting to a Popy =
database via=20
python and send query's to the db, but i can not get it to work. I am =
not quite=20
sure how to use the fetchxxx() as well.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Could someone please compose some =
sample could for=20
me that would contain how to connect and send a query to a PoPy database =
using=20
theses specs:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>database name: Sampledb</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>host:thales</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>port:5432</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>user: dbuser</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>password: xyz</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is what the database looks like... =
Has a=20
column named friends and it contains there first and last name and there =
phone=20
number. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>---------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Friends&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>---------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>last_name </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>----------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>first_name </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>----------------</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>phone&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>----------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank You Very Much!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Daivd</FONT></DIV></BODY></HTML>

------=_NextPart_000_001B_01C0B8E3.36398480--