Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > BUG #4087: tabl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3679 of 3899
Post > Topic >>

BUG #4087: table creation problem using python

by teri.jitendra@[EMAIL PROTECTED] ("jitendra") Apr 3, 2008 at 10:15 AM

The following bug has been logged online:

Bug reference:      4087
Logged by:          jitendra
Email address:      teri.jitendra@[EMAIL PROTECTED]
 version: 8.1.4
Operating system:   rhel 5
Description:        table creation problem using python
Details: 

hi,
I'm jitendra from delhi(India),I've a problem with table creation using
python....script executed but there's nothing happened.
the program written in python is...

im****t psycopg2
   
try:
       print "Waiting for Connection........."      
       conn = psycopg2.connect("dbname='jitu' user='postgres'
host='localhost' password=''")
       print "connection established........"
except:
       print "I am unable to connect to the database"
try:       
       print "trying to execute query....."
       
       cur = conn.cursor()


       cur.execute("create table ph2 (nm varchar, ph varchar)")
       
       print "table created....." 

except:
       print "Sorry, unable to create table....."
try:      
       cur.close ()
       conn.close ()
       print "connection closed..."
except:
        "problem........."


It runs without any error but when I'm trying to see table ...such as..
"select * from tablename"..it flashes an error..
error:relaton ph2 does not not exit.

plz..help me...

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 2 Posts in Topic:
BUG #4087: table creation problem using python
teri.jitendra@[EMAIL PROT  2008-04-03 10:15:02 
Re: BUG #4087: table creation problem using python
itagaki.takahiro@[EMAIL P  2008-04-03 19:37:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 1:33:20 CDT 2008.