Python を使用して、SQL クエリの結果を Excel シートにエクスポートしたいと考えています。
コード
sql='''
Select * from PTWorkOrderTasks
'''
// this is the code to generate sql result
sql_result= self.account.DBService().ExecuteQuery(sql,{})
if sql_result.Rows.Count>0:
(--code to export to excel--)
このクエリ結果を Excel にエクスポートするには、Python コードが必要です。
誰でもこれを修正するのを手伝ってもらえますか?