How to get columns' sql type queried by sqlalchemy

你。 提交于 2021-01-28 06:03:24

问题


For example:

sql = "select a, b, c from tb"
rs = engine.execute(sql)

the columns' types in rs.cursor.description are python types, not sql types, so how can I get columns' sql types?

来源:https://stackoverflow.com/questions/44692892/how-to-get-columns-sql-type-queried-by-sqlalchemy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!