commit 7044a4dc95f30a6bd60293d9cfd2afca6de6fb36
Author: bai <173792339@qq.com>
Date: Thu Jul 18 21:09:31 2024 +0800
brs-day1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..35410ca
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..132404b
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..71f845a
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,17 @@
+
+
+ 4.0.0
+
+ com.bwie
+ untitled
+ 1.0-SNAPSHOT
+
+
+ 8
+ 8
+ UTF-8
+
+
+
diff --git a/src/sql/ria_01.sql b/src/sql/ria_01.sql
new file mode 100644
index 0000000..40eb3e1
--- /dev/null
+++ b/src/sql/ria_01.sql
@@ -0,0 +1,29 @@
+-- 依据上图(字段类型一致),创建数据库
+CREATE DATABASE ria_01
+use ria_01
+-- ,添加至少5条数据
+INSERT INTO t_stu VALUES(0,'学生姓名1','性别','联系方式',10,10,1000.00)
+INSERT INTO t_stu VALUES(0,'学生姓名2','性别','联系方式',20,13,1654.00)
+INSERT INTO t_stu VALUES(0,'学生姓名3','性别','联系方式',30,12,1345.00)
+INSERT INTO t_stu VALUES(0,'学生姓名4','性别','联系方式',40,17,1430.00)
+INSERT INTO t_stu VALUES(0,'学生姓名5','性别','联系方式',50,15,1780.00)
+INSERT INTO t_stu VALUES(0,'学生姓名6','性别','联系方式',60,14,1637.00)
+-- 查询所有学生信息,并根据年龄进行降序排序
+SELECT * from t_stu ORDER BY age DESC
+-- 显示姓王的学生的详细信息
+SELECT * from t_stu WHERE INSTR(ename,'王')
+-- 查询工资大于5000的所有男同学的信息
+SELECT * from t_stu WHERE sal>5000 and sex = '男'
+-- 查询班级编号为20的男同学的电话号码
+SELECT t_stu.tel from t_stu WHERE classid = 20 and sex = '男'
+-- 18.查询最低工资。(10分)
+SELECT min(t_stu.sal) from t_stu
+-- 查询班级为30的学生的最小年龄
+SELECT min(t_stu.age) from t_stu WHERE classid = 30
+-- 查询女生的最低工资
+SELECT min(t_stu.sal) from t_stu WHERE sex = '女'
+-- 查询女学生中薪资最低的人的全部信息
+SELECT t_stu.*,min(t_stu.sal) from t_stu WHERE sex = '女'
+
+
+
diff --git a/src/理论/img.png b/src/理论/img.png
new file mode 100644
index 0000000..23bf0f0
Binary files /dev/null and b/src/理论/img.png differ