SO DB Schema

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select c.Table_Name
     , column_name
     , data_type
     , is_nullable
     , coalesce(CHARACTER_MAXIMUM_LENGTH
             , numeric_precision
             , datetime_precision) as [Length/precision]
 --     ,*
from INFORMATION_SCHEMA.Columns c
where c.Table_Name IN ('Badges', 'Comments', 'PostHistory','PostLinks','Posts','Tags','Users','Votes')
order by c.Table_Name Asc, ordinal_position

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results