Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get all tables with column name sql

SELECT      c.name  AS 'ColumnName'
            ,t.name AS 'TableName'
FROM        sys.columns c
JOIN        sys.tables  t   ON c.object_id = t.object_id
WHERE       c.name LIKE '%MyName%'
ORDER BY    TableName
            ,ColumnName;
Comment

how to get all table names in sql query

BY LOVE SINGH

SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG='YOUR_Database_name'
Comment

Get all table names in SQL

SELECT name, crdate FROM SYSOBJECTS WHERE xtype = 'U';
-- or 
SELECT * FROM INFORMATION_SCHEMA.TABLES
-- or 
SELECT * FROM databaseName.INFORMATION_SCHEMA.TABLES;
Comment

find tables with column name in sql

SELECT * FROM USER_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN'; -- Connected user
SELECT * FROM ALL_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN';	-- Other schemas
SELECT * FROM DBA_TAB_COLUMNS WHERE COLUMN_NAME = 'MY_COLUMN';	-- All tables
Comment

find all tables with column name

SELECT
  sys.columns.name AS ColumnName,
  tables.name AS TableName
FROM
  sys.columns
JOIN sys.tables ON
  sys.columns.object_id = tables.object_id
WHERE
  sys.columns.name LIKE '%ColumnName%'
Comment

get table column names sql

SELECT      COLUMN_NAME AS 'ColumnName'
FROM        INFORMATION_SCHEMA.COLUMNS 
WHERE 
TABLE_NAME LIKE '%assembly_armatureassy_tbl%' 
and COLUMN_NAME LIKE '%supplied%'
Comment

get all tables with column name sql

Get table containing given field
Comment

PREVIOUS NEXT
Code Example
Sql :: tsql rename column name 
Sql :: delete query 
Sql :: ORACLE SUBSTRING SYNTAX 
Sql :: how to fetch first 10 rows in sql 
Sql :: how to find median of a column sql 
Sql :: All Some Any 
Sql :: phpmyadmin access denied 
Sql :: modify column name in tsql 
Sql :: SQL sort on a calculation 
Sql :: condition in orderby mysql 
Sql :: select lowest values sql 
Sql :: Extract Data from SQL Server into XML Format 
Sql :: mysql stand for 
Sql :: sql query by rahuldev 
Sql :: Work around for mutating problem in Oracle Triggers. Please check it out. 
Csharp :: unity reset scene 
Csharp :: unity foreach child 
Csharp :: visual studio c# print to console 
Csharp :: c# random number 
Csharp :: c# alphabet array 
Csharp :: unity ray from mouse position 
Csharp :: c# or 
Csharp :: split with multiple delimiters c# 
Csharp :: Animator.GotoState: State could not be found 
Csharp :: usermanager change password without current password 
Csharp :: add two numbers in c# 
Csharp :: c# check if list contains string case insensitive 
Csharp :: string to enum c# 
Csharp :: unity disable cursor 
Csharp :: mouselook script unity 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =