Answers for "display table in sql"

SQL
10

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
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
2

css in sql query

SELECT  'test1' AS [@class]
    , ( SELECT  'test2' as [@class]
        , (SELECT 'Name' FOR XML PATH(''))
        FOR XML PATH('td'), type)
    ,(SELECT  'test3' as [@class]
        , (SELECT 'Value' FOR XML PATH(''))
        FOR XML PATH('td'), type) 
FOR XML PATH('tr'), type
Posted by: Guest on April-13-2020
0

how to check table name in current database sql

SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG=db_name() 
and TABLE_NAME like'%table_name%'--to check particular table
Posted by: Guest on June-21-2020
3

display table in sql

SELECT * FROM TABLE_NAME;
Posted by: Guest on March-06-2020
2

how select from db

SELECT columname FROM tablename
Posted by: Guest on March-31-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language