Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get schema of table sql

SELECT `table_schema` 
FROM `information_schema`.`tables` 
WHERE `table_name` = 'whatever';
Comment

sql server get schema of table


-- This first query will return all of the tables in the database you are querying.
SELECT
  	TABLE_NAME
FROM
  	INFORMATION_SCHEMA.TABLES
ORDER BY TABLE_NAME


-- The second query will return a list of all the columns and tables in the database you are querying.
SELECT
  	TABLE_NAME,
	COLUMN_NAME
FROM
  	INFORMATION_SCHEMA.COLUMNS
ORDER BY TABLE_NAME
Comment

view schema of a table SQL

.schema <table-name>
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle list procedures 
Sql :: mysql get longest string in column 
Sql :: oracle get table column names 
Sql :: how to drop databaselink in oracle 
Sql :: show indexes in mql 
Sql :: sql last row in table 
Sql :: oracle search stored procedures for text 
Sql :: find table for column name in sql 
Sql :: mysql text to decimal 
Sql :: sql query to find duplicates in column 
Sql :: dump mysql 
Sql :: sql database size 
Sql :: linux command line import mysql database 
Sql :: how to change table name in sqlite 
Sql :: ubuntu stop mysql from starting on boot 
Sql :: change mysql password from command line 
Sql :: netstat -tln mysql 
Sql :: oracle sleep 1 second 
Sql :: sql pick random row 
Sql :: mysql get db name 
Sql :: delete a view sql 
Sql :: select item.* as json mysql 
Sql :: get month of date sql 
Sql :: tsql find foreign key references 
Sql :: error code 1292 mysql workbench 
Sql :: pentaho + pasar de excel a sql 
Sql :: oracle apex prevent initial load 
Sql :: my sql version 
Sql :: distincct sql 
Sql :: dbms_output.put_line 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =