****** Object: Database Student scr ipt Date: 2004-2-6 20:23:55 ******/ IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'Student') DROP DATABASE [Student] GO
create table student( id int not null, name varchar(20) not null, sex char(1) not null) class student{ int id; String name; } String sql="select * from user"; create table teachers( id bigint identity(1,1) not null primary key, teachid int not null
1、查询“001”课程比“002”课程成绩高的所有学生的学号; select a.S# from (select s#,score from SC where C#='001') a,(select s#,score from SC where C#='002') b where a.score>b.score and a.s#=b.s#; 2、查询平均成绩大于60分的同学的学号和平均成绩; select S#,avg(score) from sc group b y S# having
sql + vb 学生信息管理系统 Microsoft SQL Server ODBC 驱动程序版本 03.85.1117 数据源名称: studentinfo.dsn 数据源描述: biyesheji Server: LOVEJUICE 数据库: Student 语言: (Default) 翻译字符数据: Yes 日志长运行查询: No 日志驱动程序统计: No 使用集成安全机制: No 使用区域设置: No 预定义的语句选项: 在断开时删除临时存储过程 使用故障转移服务器: No 使用 A