皮皮学,免费搜题
登录
搜题
【简答题】
试题四(共15分) 阅读以下说明,回答问题1至问题3,将解答填入答题纸的对应栏内。 【说明】 某电子商务网站使用ASP技术开发,数据库采用SQL Server,该商务网站具有商品展示、商品查询、会员登录、购物车管理、后台商品管理及会员管理等功能。数据库名为CommodityBase,数据库包括商品表、商品大类表,商品小类表,用户表等,其中商品表(sw_Commodity)的结构如表4-1所示。 【问题1】 (6分) 在sw_Commodity表中,字段sw_smallclassid关联商品小类表的sw_mallclassid字段,它是sw_Commodity表的外键,是商品小类表的(1), 如果某个商品被点击浏览了,那么该商品的点击数应该加1,使商品ID为“sw0001”的商品的点击数加1的SQL语句为 (2) ;如果在查询商品时,需要按照商品点击数降序排序,那么需要在查询语句“select * from sw_Commodity”的后面加上 (3) ; 空(2)、(3)备选项如下: (2) A.update sw_Commodity set sw_chit =sw_chit+1 B.insert into sw_Commodity sw-chit= sw_chit+1 where sw_commodityid=’sw0001’ C.update sw _Commodity set sw_chit= sw_chit+1 where sw_commodityid=’sw0001’ D.update CommodityBase set sw _chit= sw_chit+1where sw_commodityid=’sw0001’ (3) A.order by sw_chit desc B.order by sw_chit C.group by sw_chit desc D. order by sw_chit asc 【问题2】(3分) 在ASP中,常见的内置对象有application、session、cookie等。会员登录成功以后,要将会员信息进行临时保存,其中(4)可以将会员信息临时存在WEB服务器内存中,利用(5)可以将会员信息临时存于客户端硬盘上。如果要统计网站的访问人数,可以使用ASP内置对象(6)实现。 【问题3】(6分) 该商务网站后台商品管理中,需要对上架超过5年的商品执行删除操作,并弹出对话框,提示删除操作是否成功。请根据题目说明,将空缺的代码补充完整。 connstr=”server=127.0.0.1;database=(7);uid=sa;pwd=sa' set conn= (8) .createobject(”adodb.connection”) conn.provider=”sqloledb” conn.open (9) sq1=”delete from(10) where datediff( year, sw_ ctime,(11)>5” dim a conn.execute sql,a if a>=1 then response.write” (12)('超过5年的商品已全部删除!') ” else response.write” (12)( '删除失败!') ” end if %> 空(7)~(12)备选项如下: A. sw_Commodity B.alert C.window D..message.box E.Server F.connstr G.getdate( ) H.getday( ) I.CommodityBase J.conn
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】使用()工具可以在绘图区创建垂直文字。
A.
文字
B.
垂直文字工具
C.
水平文字工具
D.
图形工具
【单选题】“您去哪儿?”的英语是()。
A.
Who are you going?
B.
Why are you going?
C.
Where are you going?
【单选题】旅行归来两周内,出现发热伴皮疹,一般不需要考虑下列哪个疾病:
A.
疟疾
B.
登革热
C.
基孔肯雅热
D.
寨卡病毒病
E.
斑疹伤寒
【单选题】“您去哪儿?”的英语表达是()。
A.
Who are you going?
B.
Why are you going?
C.
Where are you going?
【判断题】鸦片战争后,中国逐步丧失了关税自主权。
A.
正确
B.
错误
【单选题】计算机系统的两大组成部份是( )。
A.
CPU和内存
B.
主机和输人/输出设备
C.
硬件系统和软件系统
D.
应用软件和系统软件
【单选题】— ______________ — I'm going to the park. [     ]
A.
Where are you going?
B.
When are you going?
C.
What are you going to do?
【简答题】Are you going to repair the car yourself, or are you going to have it (repair) ______?
【简答题】使用工具可以在绘图区创建垂直文字。A. 垂直文字
【单选题】—________? —We are going to Los Angeles. [     ]
A.
Where are you going to tomorrow
B.
Where are you going tomorrow
C.
Where did you go
D.
Where do you go to
相关题目: