Search
 
SCRIPT & CODE EXAMPLE
 

SQL

select all field names for a table mysql

DESCRIBE my_table;
Comment

mysql select all table that have field names

SELECT DISTINCT
	TABLE_NAME
FROM
	INFORMATION_SCHEMA.COLUMNS
WHERE
	COLUMN_NAME IN('column1', 'column2')
	AND TABLE_SCHEMA = 'schema_name';
Comment

PREVIOUS NEXT
Code Example
Sql :: postgres list all roles 
Sql :: data types sql 
Sql :: python escape string for sql 
Sql :: show processlist mysql full query 
Sql :: mysql backup skip table 
Sql :: oracle current date minus 1 day 
Sql :: create table like sql 
Sql :: mysql load data infile csv 
Sql :: restore postgres database from sql file 
Sql :: How to Add a Default Value to a Column in MS SQL Server 
Sql :: oracle sysdate 
Sql :: oracle db get table sizes 
Sql :: how to alter table column name in mysql 
Sql :: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v72-win32-x64.tar.gz 
Sql :: start postgres server 
Sql :: mysql limit offset 
Sql :: oracle tables with column name 
Sql :: vacuum table postgres 
Sql :: mysql start command 
Sql :: insert data from another table 
Sql :: sql add column after another column 
Sql :: add column with foreign key constraint sql server 
Sql :: update field sql 
Sql :: mysql set value as null 
Sql :: mysql limit rows 
Sql :: update mongodb version ubuntu 
Sql :: mysql set password for user 
Sql :: display 2 numbers after decimal mysql 
Sql :: rename field name in mysql 
Sql :: rename column sql 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =