1.create dateabase + 数据库名。
2.create table +表名(字段。。。。);
3.查看表结构:desc +表名
4.修改表字段类型:alter table 表名modify column 字段名 修改类型 约束(not null);
5.查看全部数据。select *from 表名
6.修改表记录:update class set classTeacher = ‘唐欣’ where class_id = 01; //将classTeacher修改为唐欣在class_id = 01的地方。
数据库语句
7.删除字段:alter table 表名 drop 字段名。
8.查看数据库下面的表:show tables;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-08-01
  • 2021-12-04
  • 2021-12-04
  • 2022-01-03
  • 2021-06-24
猜你喜欢
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-11-10
  • 2021-11-28
相关资源
相似解决方案