Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在SQLAlchemy中查看联接表的列名?_Python_Sqlalchemy - Fatal编程技术网

Python 如何在SQLAlchemy中查看联接表的列名?

Python 如何在SQLAlchemy中查看联接表的列名?,python,sqlalchemy,Python,Sqlalchemy,我使用join() q=db\u会话。查询(电子邮件)。加入(候选人) 是否有办法打印出q的内容或列?当然,会生成一个新的查询对象,您可以通过和检查该对象: 有关如何检查查询的更多信息,请参见: print(q.column_descriptions) print(q.statement)

我使用
join()

q=db\u会话。查询(电子邮件)。加入(候选人)

是否有办法打印出
q
的内容或列?

当然,会生成一个新的
查询
对象,您可以通过和检查该对象:

有关如何检查查询的更多信息,请参见:

print(q.column_descriptions)
print(q.statement)