[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fn3yx9zXc3uEpdjOfnXqsQivPfIzw8C5nulKeE_TSccc":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":8,"question":15,"related":16,"source":26,"type":90},[],"2025-07-07 15:55:26",212081767,[],{"count":9,"courseId":10,"courseImg":11,"courseName":12,"workId":13,"workName":14},18,"8310812410520cde847be27c20e20cd3","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fb66b458e8189a4691610d3232e9b9cb2.jpg","数据库技术","exam_157099392","2024-2025下学期:第3次综合测试","以下是基于数据完整性校验的存储过程实现,代码如下: SQldelimiter $$ create 【5】 proc_validateproduct( )begin -- 检查价格是否为正数 insert into data_issue(productid, issue) select productid, '价格必需是大于的正整数!' from product where unitprice 【3】 0; -- 检查分类是否存在 insert into data_issue(productid, issue) select productid, '分类不存在!无效分类!' from product p left join category c on p.category = 【2】.catid where 【2】.catid is null;end 【4】 delimiter ; 调用存储过程的语句是【1】. 根据业务实现完成程序补全",[17,28,37,46,55,63,71,76,81,87],{"answer":18,"createTime":5,"id":19,"options":20,"question":25,"source":26,"type":27},[],212081749,[21,22,23,24],"'奇数'","null","报错","'偶数'","执行以下代码后,变量v_result的值是( ). SQlset v_num = 7;if v_num % 2 = 0 then set v_result = '奇数';else set v_result = '偶数';end if","v1",0,{"answer":29,"createTime":5,"id":30,"options":31,"question":36,"source":26,"type":27},[],212081751,[32,33,34,35],"UPDATE","CHANGE","ALTER TABLE","MODIFY COLUMN","以下哪个语句用于修改表结构",{"answer":38,"createTime":5,"id":39,"options":40,"question":45,"source":26,"type":27},[],212081753,[41,42,43,44],"DCL","DML","DQL","DDL","执行 Plain TextSELECT * FROM employee WHERE salary&gt;5000; 属于哪种SQL分类",{"answer":47,"createTime":5,"id":48,"options":49,"question":54,"source":26,"type":27},[],212081755,[50,51,52,53],"GRANT","SELECT","INSERT INTO","CREATE TABLE","以下属于数据DML(数据操作语言)的是",{"answer":56,"createTime":5,"id":57,"options":58,"question":61,"source":26,"type":62},[],212081757,[59,60],"第1组 1. 【 】语句用于删除表中的数据,保留表结构 2. 创建索引的DDL语句是【 】 3. 在存储过程中,声明整形变量的语句是【 】 4. 创建视图的DDL语句是【 】 5. 修改表结构的DDL语句是【 】","第2组 A. create index B. delete from C. declare v_count int; D. alter table tablename E. create view","根据基本概念及应用完成下列数据连线",11,{"answer":64,"createTime":5,"id":65,"options":66,"question":69,"source":26,"type":70},[],212081759,[67,68],"正确","错误","truncate talbe操作可以回滚",3,{"answer":72,"createTime":5,"id":73,"options":74,"question":75,"source":26,"type":70},[],212081761,[67,68],"数据完整性约束中,外检约束可以自动创建索引",{"answer":77,"createTime":5,"id":78,"options":79,"question":80,"source":26,"type":70},[],212081763,[67,68],"存储函数可以通过return返回一个或多个值",{"answer":82,"createTime":5,"id":83,"options":84,"question":85,"source":26,"type":86},[],212081765,[],"以下基于petstore数据库的存储过程proc_check_account_security实现的业务需求是用户安全监测逻辑. SQldelimiter \u002F\u002F create procedure proc_check_account_security( )begin -- 弱密码检测 insert into security_report(userid, issue) select userid, '弱密码:长度不足或缺乏字母!' from account where length(password) &lt; 8 and password not regexp '[A-Za-z]'; -- 监测未绑定邮箱 insert into security_report(userid, issue) select userid, '邮箱未绑定!' from account where email is null;end \u002F\u002F delimiter ; 如何调用存储过程生成安全报告? 用户u0003的密码为'123456',会触发哪种问题",4,{"answer":88,"createTime":5,"id":6,"options":89,"question":15,"source":26,"type":90},[],[],2]