Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to get all tables in sql

SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'
Comment

get the list of all tables in sql server

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

list all the tables in sql

select tablespace_name, table_name from all_tables; 
Comment

sql query to list all tables in a database sql server

BY LOVE SINGH on May 19 2020

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

sql command to show all tables

USE 'DATABASE_NAME';

SHOW TABLES;
Comment

mssql list tables

SELECT
	[name]
FROM
	SYSOBJECTS
WHERE
	xtype = 'U'
ORDER BY 
	[name];
GO
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle columns table 
Sql :: start mysql server by terminal in linux 
Sql :: cast string to datetime mysql 
Sql :: oracle to_timestamp 
Sql :: sql query to get column data type in sql 
Sql :: string to date postgres 
Sql :: postgresql change column type 
Sql :: sql script get all stored procedures from database 
Sql :: flutter sqlite auto incrementing id primary key 
Sql :: possgress drop if exists table 
Sql :: Failed to stop mysql.service: Unit mysql.service not loaded. 
Sql :: create table oracle 
Sql :: get year from date postgres 
Sql :: sqlite3 now 
Sql :: oracle start job 
Sql :: mysql import gz 
Sql :: how to remove unique key constraint in mysql 
Sql :: change varchar length mysql 
Sql :: t-sql test if table exists 
Sql :: bulk kill mysql processlist 
Sql :: add column in mysq 
Sql :: add constraint fk 
Sql :: describe table mysql 
Sql :: error code 1175 mysql fix 
Sql :: invalid reference to FROM-clause entry for table "unidades 
Sql :: snowflake alter column data type 
Sql :: sql remove first character from string 
Sql :: operator does not exist: integer = text 
Sql :: mysql show carset 
Sql :: mysql extract month 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =