---
title: "清空数据库中所有表的数据"
author: "devilhand"
date: "2010-11-04T14:59:49Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-11-04T14:59:49Z"
id: 802822
url: "https://devilhand.iteye.com/blog/802822"
---

```
exec sp_msforeachtable "truncate table ?"
```