Hi,
I will read all informations out of my table building.
In my opinion the connection is successfull but it cannot find the table!
My code:
import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy import MetaData
from sqlalchemy import select
import cx_Oracle
engine =
create_engine('postgresql://postgres:postgres@localhost:5432/3DCityDB_kreis_boeblingen',
echo = True)
metadata = MetaData(bind=engine)
conn = engine.connect()
s = select([building.c.id])
result = conn.execute(s)
for row in result:
print(row)
Can anyone please help me?
*error-message: NameError: name 'building' is not defined!*
But it is one tablename out of my database...
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.