CData Python Connector for YouTube Analytics

Build 22.0.8479

カラム

特定のテーブルで利用可能なカラムは、"sys_tablecolumns"と呼ばれるシステムテーブルからフェッチされます。WHERE 条件で特定のテーブル名を指定すると、カラム情報をフェッチするテーブルを制限することができます。

import cdata.youtubeanalytics as mod
conn = mod.connect("InitiateOAuth=GETANDREFRESH;ContentOwnerId=MyContentOwnerId;ChannelId=ChannelId;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tablecolumns WHERE TableName = 'Groups'"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479