找回密码
 免费注册

mysql数据库删除表源码语法教程

[复制链接]
发表于 2022-11-25 11:26:01 | 显示全部楼层 |阅读模式
mysql数据库删除表源码语法教程

语法:
  1. drop table [if exists] 表1,表2,…
复制代码
  1. -- 删除表
  2. mysql> drop table stu4;
  3. Query OK, 0 rows affected (0.06 sec)

  4. -- 如果表存在就删除
  5. mysql> drop table if exists stu4;
  6. Query OK, 0 rows affected, 1 warning (0.00 sec)

  7. -- 一次删除多个表
  8. mysql> drop table stu2,stu3;
  9. Query OK, 0 rows affected (0.03 sec)
复制代码


QQ|Archiver|小黑屋|网站地图|深圳市金黑网络技术有限公司 ( 粤ICP备2021124338号|粤公网安备 44030702003689号 )

GMT+8, 2026-8-8 17:10 , Processed in 0.046929 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表