CData Python Connector for SAP Gateway

Build 23.0.8839

テーブルとビュー

コネクタには、データモデルで使用可能なテーブルとビューを検出するために使用されるシステムテーブルがあります。これらのシステムテーブルのうち、"sys_tables" および"sys_views" は、それぞれ使用可能なテーブルとビューに関する情報を取得するために使用されます。

テーブル


import cdata.sapgateway as mod
conn = mod.connect("InitiateOAuth=GETANDREFRESH;User=user;Password=password;URL=https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tables"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

ビュー


import cdata.sapgateway as mod
conn = mod.connect("InitiateOAuth=GETANDREFRESH;User=user;Password=password;URL=https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/")
cur = conn.cursor()
cmd = "SELECT * FROM sys_views"
cur.execute(cmd, params)
rs = cur.fetchall()
for row in rs:
	print(row)

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839