1.添加Insert
Insert into 表名(列 1…列n) values(值1…值n)
“INSERT INTO dept VALUES(1,‘人事’);”
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
这种方式,列的值必须和表的列的顺序一直,不建议使用这种方式,如果后期表的顺序变了,就很麻烦
学习笔记-数据库增删查
2.修改update
Update 表明 set 列名 =“xx” where id=1;
千万不能忘了where!!!!!
学习笔记-数据库增删查
3.删除delete
Delete from 表名 where uid=2;
千万不能忘了where!!!!!

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-07-04
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-01-02
相关资源
相似解决方案