MySQL数据库查询操作
MySQL数据库基本的SQL语句(使用学生表作为示例)
-- 查看表格(所有列)数据
select * from Student;
-- 新增指定数据
insert into stu values(null,'赵六','女','2021-09-28',99);
-- 查询符合条件的数据
select * from stu where gender = '男';
SeLEct * from stu where score > 80; -- select等关键字不区分大小写
-- 创建数据库
c
原创
2021-11-08 22:30:55 ·
672 阅读 ·
0 评论