473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How can i get all the table names from a databse ?

in my app, i need to fetch all the table names in a database ,which SQL
statements i can use ?

Thanks for any advices !

Albert Guo
Jiangsu ,China PRC
---------------------------------------------
Nov 16 '05 #1
2 1114
For MSSQL:

select name from sysobjects where type = 'U'
or
select table_name from information_schema.tables where table_type = 'BASE
TABLE'

For other RDBMS - check their documentation.
Arild

"¹ùÑÇ·æ" <gr*************@yahoo.com> wrote in message
news:eN**************@tk2msftngp13.phx.gbl...
in my app, i need to fetch all the table names in a database ,which SQL
statements i can use ?

Thanks for any advices !

Albert Guo
Jiangsu ,China PRC
---------------------------------------------

Nov 16 '05 #2
On Fri, 28 May 2004 08:42:24 +0200, "Arild Bakken"
<ar*****@hotmail.com> wrote:
For other RDBMS - check their documentation.


Oracle:
select table_name from all_tables;
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: leon | last post by:
Hi all, I have an .mdb file (access database) which has been set to table level locking (i.e. not just records in question, but the whole table). The database is also in sharing mode (ie. not...
4
by: authorking | last post by:
I use the following code to insert a data record in to a datatable of an access database.But every time I execute the command, there will rise an exception and the insert operation can't be...
2
by: Carlos | last post by:
I have an c# as.net app that check if the user exist in a USERS table, that part is ok but now I need to pass the user ID no the next page beacuse I need to do some databse queries with that user...
0
by: Mamatha | last post by:
Hi i have a code to retrieve table structures of SQL Server database. It gives all the table names in particular databse with the column names and datatypes also. But the output displays not in...
9
by: Dejan | last post by:
Hy, Sorry for my terreble english I have this simple code for deleting rows in mysql table... Everything works fine with it. So, what do i wanna do...: my sql table looks something like...
6
by: frank78 | last post by:
Hi everyone, I am having a little bit of trouble backing up some mySQL tables. I've been trying to adapt a script I found on the internet at...
2
by: nittin14 | last post by:
hello guys, pls solve my problem my problem is that i m retreive data from table but in some column the value is store NULL. i want that insist of NULL it wl display some text in datalist while...
3
by: MarkTingson | last post by:
hi scripters! is it possible in vb to transfer the table in a databse into an external memory disk? i just want to save ONLY THE TABLE but NOT THE ENTIRE DATABSE in a flashdisk! pls tell me how......
2
by: sreenu123 | last post by:
Hi I already bind a DataGridView to a databse. My DataGridView is showing column names as it is in the table. I want to show user-friendly column names in the grid instead of column names in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.