---
title: "list all column info "
author: "ieniac"
date: "2011-08-04T16:11:22Z"
tags: []
categories: ["数据库"]
slug: "list-all-column-info"
draft: false
lastmod: "2011-08-04T16:11:22Z"
id: 1140153
url: "https://ieniac.iteye.com/blog/1140153"
---

```
select column_name,data_type, table_name from information_schema.columns
where table_name in (select Name from sysobjects where xtype='u' and status>=0)
```