MySQL delete 删除

  以下是 delete 命令修改 MySQL 数据表数据的通用 SQL 语法:
  
  DELETE FROM table_name [WHERE Clause]
  
  mysql如何要删除一个一行或者多行,用sql语句delete关键词,固定用法 delete from 表名。
  
  1,delete删除一行
  
  delete from student where id=1
  
  2,delete删除多行
  
  delete from student where in (1,2,3)
  
  3,删除表的所有数据
  
  delete from student
  
  注意:在执行delete语句时要带where条件,否则会将表中所有的行都进行删除,非常危险!!

MySQL delete 删除

上一篇:09 spark连接mysql数据库


下一篇:Spark 连接 MySQL 数据库