Tagged: sql queries

0

Extracting table and column names from SQL query

(Not original article) sql-metadata is a Python library that uses a tokenized query returned by python-sqlparse and generates query metadata. This metadata can return column and table names from your supplied SQL query. Here are a couple of example from the sql-metadata github readme:...

0

Microsoft SQL Server query tips

Get column details of a table   Get column details of a table select name from sys.columns where object_name(object_id)=’table_name’   No related posts.