adspace


How to get list of all tables from a database?

Answer Posted / Arti Pal

In SQL, you can use the following command to get a list of all tables in a specific database. Replace `database_name` with the name of your database and `information_schema` with the name of the system database.nn```sqlnSELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'database_name';n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to start mysql server? : Sql dba

1278


Can delete statement be rollbacked?

1064


what is schema? : Sql dba

1160


Is inner join faster than left join?

1286


Can we rollback truncate?

1082


how to use regular expression in pattern match conditions? : Sql dba

1122


What is your daily office routine?

2351


what are the advantages of sql ? : Sql dba

1151


what are all the common sql function? : Sql dba

1139


How do I remove duplicates in two columns?

1201


Is primary key clustered index?

1025


What is the current version of postgresql?

1187


Does group by remove duplicates?

1118


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2099


what is dbms? : Sql dba

1069