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

mssql get all table names

SELECT name from sysobjects where type = 'U'
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

get all tables with column name sql

Get table containing given field
Comment

PREVIOUS NEXT
Code Example
Sql :: sql list users and roles 
Sql :: sql join exists 
Sql :: mysql cli connect with password 
Sql :: how to get ddl for materialized view 
Sql :: how to delete duplicate rows in oracle 
Sql :: SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1 
Sql :: async await mysql nodejs 
Sql :: mysql modify default value 
Sql :: create database store 
Sql :: oracle user quota on tablespace 
Sql :: access the postgres psql 
Sql :: creating a view sql 
Sql :: mysql get age from date 
Sql :: how to delete table sqlite 
Sql :: What is localhost IP and MySql default port no. 
Sql :: sqlite version check 
Sql :: get first 3 letter of department name in sql 
Sql :: mysql number format 
Sql :: host is not allowed to connect to this mysql server 
Sql :: mariadb.service: Main process exited, code=exited, status=1/FAILURE 
Sql :: adding indexing on a db model in mysql using sequelize 
Sql :: oracle explain plan 
Sql :: sql auto timestamp 
Sql :: mysql last year 
Sql :: tsql random number 
Sql :: postgresql substring 
Sql :: oracle undotbs usage 
Sql :: Insert from table tsql 
Sql :: sql check if date is between 2 dates 
Sql :: postgres group by 10 minute intervals 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =