Search
 
SCRIPT & CODE EXAMPLE
 

SQL

search column by name mysql

select table_name, column_name 
from information_schema.columns 
where column_name like '%search_keyword%'; -- change search_keyword accordingly
Comment

mysql search for column name in all tables

SELECT DISTINCT TABLE_NAME, COLUMN_NAME 
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME LIKE '%partial_column_name%'
    AND TABLE_SCHEMA='YourDatabase';
Comment

mysql find tables with column name

SELECT DISTINCT TABLE_NAME 
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE COLUMN_NAME IN ('columnA','ColumnB')
        AND TABLE_SCHEMA='YourDatabase';
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql command line xampp ubuntu 
Sql :: cast string to datetime mysql 
Sql :: how to change potgress password 
Sql :: oracle kill session by username 
Sql :: pl sql escape & 
Sql :: restart postgresql.service Failed to restart postgresql.service: Unit not found. 
Sql :: psql connections 
Sql :: find string in stored procedure sql server 
Sql :: get table columns from sql 
Sql :: mysql show indexes on table 
Sql :: oracle all_source package body 
Sql :: sql drop schema 
Sql :: created at and updated at in mysql 
Sql :: how to group by month using sql server 
Sql :: mysql find most common value 
Sql :: add primary key constraint in oracle 
Sql :: [2021-10-05T13:43:48.961Z] error Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
Sql :: postgresql datetrunc too slow 
Sql :: alter table add foreign key mysql 
Sql :: group_concat max length mysql 
Sql :: Sql query to force the database to be drop 
Sql :: mysql remove last empty newline 
Sql :: t-sql disable system versioning 
Sql :: mssql remove column 
Sql :: create table mysql query 
Sql :: create email address from first and last name in sql 
Sql :: mysql get domain from url 
Sql :: sql comment header 
Sql :: update substring in mysql 
Sql :: oracle view source 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =