|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 1:29 PM
Points: 6,
Visits: 399
|
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Wednesday, June 12, 2013 1:41 AM
Points: 84,
Visits: 271
|
|
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: Tuesday, June 11, 2013 1:29 PM
Points: 6,
Visits: 399
|
|
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: Monday, June 10, 2013 11:25 AM
Points: 278,
Visits: 436
|
|
| Suresh, to get that information for all tables in the database, remove the WHERE clause from the original query.
|
|
|
|