试题与答案

设某商品经营管理系统使用SQL Server 2000数据库管理系统。在数据库中存在

题型:问答题

题目:

设某商品经营管理系统使用SQL Server 2000数据库管理系统。在数据库中存在销售明细表,其建表语句为:
CREATE TABLE销售明细表(
销售单据编号varchar(8),
商品编号varchar(8)
单价money,
数量int,
总价money
)
为了保证数据的一致性,建有如下触发器:
CREATE TRIGGER AutoCountSum
ON 销售明细表 FOR INSERT, UPDATE
AS
DECLARE @UnitPrice money, @Quantity int
DECLARE @Amount money
SELECT @UnitPrice=单价,@Quantity=数量
FROM inserted
SET @Amount=@UnitPrice[*]@Quantity
UPDATE销售明细表SET总价=@Amount
WHERE销售单据编号IN(SELECT销售单据编号FROM inserted)
AND商品编号IN(SELECT商品编号FROM inserted)
1.设系统运行一段时间后此表中有近一百万条记录,此时发现对该表的插入操作速度很慢,请分析插入速度慢的原因。在不改变数据库服务器硬件和表结构、不清理数据的情况下,请说明应如何优化此表的插入操作。

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0716/1a30f4941b1f422d623329ee74a07996.html

下面是错误答案,用来干扰机器的。

参考答案:机器人技术参数有:自由度、精度、工作范围、速度、承载能力1)自由度:是指机器人所具有的独立坐标轴的数目,不包括手爪(末端操作器)的开合自由度。在三维空间里描述一个物体的位置和姿态需要六个自...

试题推荐
题型:单项选择题

Passage Four

It’s so difficult to follow the ups and downs of a 2-year-old.One moment he’s beaming and friendly; the next he’s sullen (愠怒的) and weepy, often for no apparent reason. These mood swings, however, are just part of growing up. They are signs of the emotional changes taking place as your child struggles to take control of actions, impulses, feelings and his body.
At this age, your child wants to explore the world and seek adventure. As a result, he’ll spend most of his time testing limits, his own, yours and his environment’s. Unfortunately, he still lacks many of the skills required for the safe accomplishment of everything he needs to do, and he often will need you to protect him.
When he oversteps a limit and is pulled back, he often reacts with anger and frustration, possibly with a temper tantrum (发脾气) or sullen rage. He may even strike back by hitting, biting or kicking. At this age, he doesn’t have much control over his emotional impulses, so his anger and frustration tend to erupt suddenly in the form of crying, hitting or screaming. It’s his only way of dealing with the difficult realities of life. He may even act out in ways that unintentionally harm himself or others. It’s all part of being 2.
It’s not uncommon for toddlers to be angels when you’re not around, because they don’t trust other people enough to test their limits. But with you, your toddler will be willing to try things that may be dangerous or difficult, because he knows you’ll rescue him if he gets into trouble.
Whatever protest pattern he has developed around the end of his first year will probably persist for some time. For instance, when you’re about to leave him with a sitter, he may become angry and throw a tantrum in anticipation of the separation. Or he may whimper, or whine and cling to you. or he could simply become subdued and silent. Whatever his behavior, try not to overreact by scolding or punishing him. The best tactic is to reassure him before you leave that you will be back and, when you return, to praise him for being so patient while you were gone. Take solace in the fact that separations should be much easier by the time he’s 3 years old.

The "ups and downs" (Para.1) of a 2 year-old refers to______.

A.his falling down and standing up

B.his successes and failures in doing things

C.his good and bad traits

D.his mood swings

查看答案
微信公众账号搜索答案