Answers for "sql show all databases"

SQL
3

show databases in sql server

SELECT * FROM SYS.DATABASES
Posted by: Guest on October-30-2020
0

show all databases sqlplus

1) To view database

select * from v$database;

2) To view instance

select * from v$instance;

3) To view all users

select * from all_users;


4) To view table and columns for a particular user

select tc.table_name Table_name
,tc.column_id Column_id
,lower(tc.column_name) Column_name
,lower(tc.data_type) Data_type
,nvl(tc.data_precision,tc.data_length) Length
,lower(tc.data_scale) Data_scale
,tc.nullable nullable
FROM all_tab_columns tc
,all_tables t
WHERE tc.table_name = t.table_name;
Posted by: Guest on September-15-2021
1

show sql server database

EXEC sp_databases
Posted by: Guest on October-30-2020
0

show databases in sql server

SELECT * FROM SYS.SYSDATABASES
Posted by: Guest on October-30-2020
-1

show databases in sql server

SELECT name FROM master.SYS.DATABASES
Posted by: Guest on October-30-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language