---
title: "数据表更名语句"
author: "wanglihu"
date: "2010-04-21T11:08:57Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2010-04-21T11:08:57Z"
id: 649185
url: "https://wanglihu.iteye.com/blog/649185"
---

当前数据表名为A，想要更名为B的语句如下：
alter table A rename to B;