以下存储过程,正确的叙述是( )create procedure proc1@id int, @name char(10) outputasselect @name=name from students where id=@id
A: @id是输出参数,@name是输出参数
B: @id是输入参数,@name是输出参数
C: @id是输入参数,@name是输入参数
D: @id是输出参数,@name是输入参数
A: @id是输出参数,@name是输出参数
B: @id是输入参数,@name是输出参数
C: @id是输入参数,@name是输入参数
D: @id是输出参数,@name是输入参数
举一反三
- 输出公司的名称及id,以id的升序排列 A: SELECT name, id FROM job ORDER BY id ASC; B: SELECT name, id FROM job ORDER BY id DESC; C: SELECT name, id FROM job ORDER BY name DECS; D: SELECT name, id FROM job ORDER BY name ASC;
- name="Zhang";ID="123"不能输出"zhang的ID号是123"结果的代码是 A: print(name,"的ID号是",ID,sep="") B: print(name+"的ID号是"+ID) C: print("%s的ID号是%s"%(name,ID)) D: print("%s的ID号是%s",%(name,ID))
- hive里创建表test,表里添加两个字段id和name,以下哪个HQL是正确的( ) A: create test(id int, name string); B: create test(int id, string name); C: create table test(int id, string name); D: create table test(id int, name string)
- 以下程序代码实现的功能是( )$conn = mysqli_connect('localhost','root','root','test');$result = mysqli_query($conn,'select id,name from user');$data = mysqli_fetch_all($result,MYSQLI_ASSOC);foreach ($data as $v){ if($v['id'] == 5){ echo $v['name']; }} A: 输出所用用户的name B: 输出第一位用户的name C: 输出id=5的用户的name D: 输出id不为5的用户的name
- create procedure a(in summ int,_____ name varchar(20))如果name是输出参数,横线处填空,全部小写。