FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-driver/samples/HelpSession.py at master · Teradata/python-driver · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Teradata
/
python-driver
Public
Notifications
You must be signed in to change notification settings
Fork
29
Star
74
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python-driver
/
samples
/
HelpSession.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (9 loc) · 469 Bytes
Breadcrumbs
python-driver
/
samples
/
HelpSession.py
Copy path
File metadata and controls
12 lines (9 loc) · 469 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright 2018 by Teradata Corporation. All rights reserved.
# This sample program demonstrates how to obtain and display session information.
import
teradatasql
with
teradatasql
.
connect
(
'{"host":"whomooz","user":"guest","password":"please"}'
)
as
con
:
with
con
.
cursor
()
as
cur
:
cur
.
execute
(
'help session'
)
row
=
cur
.
fetchone
()
for
i
in
range
(
0
,
len
(
row
)):
print
(
'{:>40} {}'
.
format
(
cur
.
description
[
i
][
0
],
row
[
i
]))
Back
|
FazBrowse Home
|
New Git URL