|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Yesterday @ 1:28 PM
Points: 6,
Visits: 396
|
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 6:45 AM
Points: 84,
Visits: 269
|
|
Hi To find column in a table you posted a code but it is getting results... Here I am posting the code to get column in the table that is also same it is getting results.... but for this i am getting results for one table... but i need all the tables column names in the DB... Plz give me query for that....
SELECT Column_Name 'Column Name', Data_type 'Data Type', character_maximum_length 'Maxium Length' FROM information_schema.columns WHERE table_name = 'Table_Name'
 suresh 
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Yesterday @ 1:28 PM
Points: 6,
Visits: 396
|
|
SELECT Column_Name 'Column Name',table_name 'Table_Name; Data_type 'Data Type', character_maximum_length 'Maxium Length' FROM information_schema.columns GROUP BY table_name
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 3:11 PM
Points: 278,
Visits: 430
|
|
| Suresh, to get that information for all tables in the database, remove the WHERE clause from the original query.
|
|
|
|