---
title: "mysql 重命名表"
author: "truth99"
date: "2014-07-16T18:37:29Z"
tags: []
categories: ["数据库"]
slug: "mysql"
draft: false
lastmod: "2014-07-16T18:37:29Z"
id: 2092905
url: "https://truth99.iteye.com/blog/2092905"
---

<span style="color:blue">**
使用MySQL的rename实现重命名
**</span>

```sql

rename table oldtablename to newtablename;

```

<span style="color:blue">**
oldtablename ：旧表名
newtablename ：新表名
**</span>