MySQL/DROP TABLE:修订间差异
来自康健生活
创建页面,内容为“== 引言 == 删除表。 <syntaxhighlight lang="mysql"> DROP TABLE md_group;</syntaxhighlight>” |
小 Kangkk移动页面Mysql/DROP至MySQL/DROP TABLE,不留重定向 |
||
| (未显示同一用户的7个中间版本) | |||
| 第1行: | 第1行: | ||
== 引言 == | == 引言 == | ||
== 表 == | |||
删除表。 | 删除表。 | ||
<syntaxhighlight lang="mysql"> | <syntaxhighlight lang="mysql"> | ||
DROP TABLE md_group;</syntaxhighlight> | DROP TABLE `md_group`; | ||
-- -- | |||
DROP TABLE IF EXISTS `md_group`;</syntaxhighlight> | |||
== 字段 == | |||
删除单个字段。 | |||
<syntaxhighlight lang="mysql"> | |||
ALTER TABLE `md_version` DROP COLUMN `time`;</syntaxhighlight> | |||
删除多个字段。 | |||
<syntaxhighlight lang="mysql"> | |||
ALTER TABLE `md_user` | |||
drop COLUMN `time`, | |||
drop COLUMN `message`;</syntaxhighlight> | |||