How to get column labels?
I decided to do like this.
It's not elegant.
old_stdout = sys.stdout
redirected_output = sys.stdout = StringIO()
exec('print curs._meta')
sys.stdout = old_stdout
print redirected_
then parse string output..
'''
org.hsqldb.
column_
column_
]
'''
Question information
- Language:
- Korean Edit question
- Status:
- Answered
- For:
- JayDeBeApi Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask jung sung hun for more information if necessary.