– 插入操作
create table my_bos(
name varchar(10),
age int
)charset utf8;

insert into my_bos (name) values (‘jack’);
数据操作
insert into my_bos values (‘jack’,30);
数据操作
– 查询全部数据
select * from my_bos;
数据操作
– 查询部分
select name from my_bos;
数据操作
– 条件查询
select * from my_bos where age = 30;
数据操作

– 删除数据
delete from my_bos where age = 30;
数据操作
– 更新数据
update my_bos age = 69 where name = ‘Bob’;
– 更改数据
update my_bos set age = 13 where age = 69;
数据操作

相关文章:

  • 2021-12-24
  • 2021-11-21
  • 2022-02-17
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2021-12-18
  • 2022-02-28
相关资源
相似解决方案