MSSql MySql Python javascript PHP java DotNet Ruby Hackme Takeawy Code Twitter Facebook

The house of developers, A website to classify and rank developers

 
 
 
 
Country Rank: 6
World Rank: 20
Profile Viewed: 712
Points: 11812
27 Nov 2010

Getting Tables names in SQl

SQLite

SELECT name FROM sqlite_master
WHERE type='table'
ORDER BY name

MS SQl
select distinct name from sysobjects where xtype='U'

MySQL
SELECT * 
FROM information_schema.tables

Oracle
select * from tab
this is the needed query to get table names from database for each engine for Sqlite,MS Sql,mysql ,Oracle this can be useful when you hack
Category: SQL
Facebook Share Delicious Share Digg Share Google Buzz Share My Space Share Reddit Share Stumbleupon Share Technorati Share Twitter Share