Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

get a list of table names and field names from SQL

     SELECT
          TABLE_SCHEMA AS TABLE_SCHEMA
         ,TABLE_NAME AS TABLE_NAME
         ,COLUMN_NAME AS COLUMN_NAME
     FROM INFORMATION_SCHEMA.COLUMNS

    --Where COLUMN_NAME Like '%Put_Your_Comumn_Name_HERE%' 
        
     ORDER BY
          TABLE_SCHEMA
         ,TABLE_NAME
         ,COLUMN_NAME;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #table #names #field #names #SQL
ADD COMMENT
Topic
Name
4+2 =