首页
登录
从业资格
给定教师关系Teacher(T_no,T_name,Dept name,Tel)
给定教师关系Teacher(T_no,T_name,Dept name,Tel)
考试题库
2022-08-02
50
问题
给定教师关系Teacher(T_no,T_name,Dept name,Tel),其中属性T_no、T_name、Dept_name和Tel的含义分别为教师号、教师姓名、学院名和电话。用SQL创建一个“给定学院名求该学院的教师数”的函数如下:Create function Dept_count(Dept_name varchar(20))(请作答此空)begain( )select count(*)into d_count from Teacher where Teacher.Dept_name=Dept_name return d_count endA.returns integerB.returns d_count integerC.declare integerD.declare d_count integer
选项
A.returns integer
B.returns d_count integer
C.declare integer
D.declare d_count integer
答案
A
解析
转载请注明原文地址:https://www.tihaiku.com/congyezige/2418324.html
本试题收录于:
中级 数据库系统工程师题库软件水平考试初中高级分类
中级 数据库系统工程师
软件水平考试初中高级
相关试题推荐
设有一个关系EMP(职工号,姓名,部门名,工种,工资),若需查询不同部门中担
通过()关系运算,可以从表1和表2获得表3;表3的主键为()。 A.投影
通过()关系运算,可以从表1和表2获得表3;表3的主键为()。 A.课程号
计算机各功能部件之间的合作关系如下图所示。假设图中虚线表示控制流,实线表示数据流
设有关系Students(学号,姓名,年龄,性别,系名,家庭住址),如果要查询姓
关系代数运算是以集合操作为基础的运算,其五种基本运算是并、差、()、投影和选择
汉字机内码与国标码的关系为:机内码=国标码+8080H。若已知某汉字的国
对于下图所示的Students和SC关系,属性Sno表示学号,Sname表示
对于下图所示的Students和SC关系,属性Sno表示学号,Sname表示
某银行信贷额度关系credit-in(C_no,C_name,limit,
随机试题
Sportingactivitiesareessentiallymodifiedformsofhuntingbehaviour.Vie
Islanguage,likefood,abasichumanneedwithoutwhichachildatacritic
[originaltext]AndrewCarnegie,knownastheKingofSteel,builtthesteel
Aestheticsisthatregioninthelandofsciencewhosebordersofinvestiga
Itisonlyrightthatthestarsshouldbepaidinthisway.Don’tthetop
Forthispart,youareallowed30minutestowriteanessaycommentingonth
用于丙型肝炎联合干扰素抗病毒治疗的药物是A.奈韦拉平 B.法昔洛韦 C.扎那
根据下列表格,请问下列哪个地区人口最少?() A.甲地区 B.乙地区 C
男性,40岁。发热、双颈部淋巴结进行性肿大1个月。查体:双侧颈部可触及数个1.
共用题干 一般资料:求助者,女性,36岁,博士,研究员。案例介绍:求助者。留学
最新回复
(
0
)