create table professor
(
professorid int identity(1,1) primary key,--ID
stutime int,--学时
professorname varchar(6),--名字
curriculum varchar(10)--课程
)
insert into professor values(100,'教授','高数')
select stutime,curriculum from professor where professorname='教授'
有错勿怪啊,直接手打的。
select 课程, 学时 from 表 where 职称 = '教授'
数据表呢。。。。