给定教师关系Teacher(T_no,T_name,Dept name,Tel)

免费题库2022-08-02  58

问题 给定教师关系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

最新回复(0)