Answers for "sql get table"

SQL
11

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'
Posted by: Guest on May-19-2020
0

get tables in database sql

SELECT
  *
FROM
  INFORMATION_SCHEMA.TABLES;
Posted by: Guest on April-15-2021
2

sql show tables

Showing all table: 
show tables;

Showing table data:
SELECT
* or column_names
FROM
table_name;
Posted by: Guest on April-26-2020
3

select database in sql

USE DatabaseName;
Posted by: Guest on November-06-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language