摘要: 查询成绩在80分以上的学生的学号、成绩 select * from sc where grade>=80 and sno 查询计算机系年龄在18到20岁之间女生的姓名、年龄 select * from stu where sdept='计算机' and sage >=18 and sage <=20 阅读全文
posted @ 2026-11-03 20:59 韩雅 阅读(3) 评论(0) 推荐(0)
摘要: 查询学生基本信息 select * from stu; select student_name,sno from stu; select student_name as 姓名,2026-sage 出生年份,sdept as'系 别' from stu; select distinct sno fro 阅读全文
posted @ 2026-11-03 15:34 韩雅 阅读(3) 评论(0) 推荐(0)
摘要: alter table stu add constraint pk_sno primary key (sno);//主键约束 alter table stu add constraint uk_sphone unique (sphone);//唯一约束 alter table stu add con 阅读全文
posted @ 2026-10-30 22:05 韩雅 阅读(4) 评论(0) 推荐(0)
摘要: package com.cn; public class TestLogic { public static void main (String[] args){ boolean a=true; boolean b=false; int num=10; //短路与 //第二个操作数不被求值,因为第一 阅读全文
posted @ 2026-10-29 20:40 韩雅 阅读(3) 评论(0) 推荐(0)