首页
登录
从业资格
给定教师关系Teacher(T_no,T_name,Dept name,Tel)
给定教师关系Teacher(T_no,T_name,Dept name,Tel)
免费题库
2022-08-02
82
问题
给定教师关系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
答案
D
解析
转载请注明原文地址:https://tihaiku.com/congyezige/2418322.html
本试题收录于:
中级 数据库系统工程师题库软件水平考试初中高级分类
中级 数据库系统工程师
软件水平考试初中高级
相关试题推荐
设有一个关系EMP(职工号,姓名,部门名,工种,工资),若需查询不同部门中担
设有一个关系EMP(职工号,姓名,部门名,工种,工资),若需查询不同部门中担
通过()关系运算,可以从表1和表2获得表3;表3的主键为()。 A.投影
计算机各功能部件之间的合作关系如下图所示。假设图中虚线表示控制流,实线表示数据流
设有关系Students(学号,姓名,年龄,性别,系名,家庭住址),如果要查询姓
设有关系Students(学号,姓名,年龄,性别,系名,家庭住址),如果要查询姓
关系代数运算是以集合操作为基础的运算,其五种基本运算是并、差、()、投影和选择
对于下图所示的Students和SC关系,属性Sno表示学号,Sname表示
对于下图所示的Students和SC关系,属性Sno表示学号,Sname表示
某银行信贷额度关系credit-in(C_no,C_name,limit,
随机试题
OfalltheemployedworkersintheUnitedStates,12.5millionarepartofa
Nowadays,people’slifestylesarechanging,whichhasresultedinthedemandfor
[originaltext]M:Doyouwanttogooutfordinnertonight?W:Sure.Haveyougot
NarratorListentoapartofatalkreportingastudyproject.[img]2011q1/c
[originaltext]Silenceisunnaturaltoman.Hebeginslifewithacryande
WhyDepressionNeedsaNewDefinition[A]Manypsychiatristsbel
[originaltext]W:Sohow’sourpresentationabouttherestructuringofthecompa
关于木炭干燥法说法错误的是A.先将木炭烘干,然后用皮纸包好夹置在易潮易霉的中药内
(2021年真题)某男,17岁,皮肤大片风团,色红,瘙痒剧烈,伴有脘腹疼痛,嗳气
材料采购合同采购的是建筑材料,包括( )。A.木材 B.玻璃 C.
最新回复
(
0
)