题目内容 (请给出正确答案)
[单选题]

阅读下面SQL语句: START TRANSACTION; UPDATE account SET money=money-100 WHERE NAME='a'; UPDATE account SET money=money+100 WHERE NAME='b'; COMMIT; 下面对上述语句的描述中,正确的是()

A.开启事务,将a账户的100元钱转给b账户

B.开启事务,将b账户的100元钱转给a账户

C.提交事务,将a账户的100元钱转给b账户

D.提交事务,将b账户的100元钱转给a账户

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“阅读下面SQL语句: START TRANSACTION; …”相关的问题

第1题

下面的语句不可以产生事务提交的是()
A.DROPTABLEteachers;

B.COMMIT;

C.UPDATEaccountSETmoney=money-100WHEREtname='王小可';

D.CREATEDATABASEmydata;

点击查看答案

第2题

设某商品经营管理系统使用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)

①设系统运行一段时间后此表中有近一百万条记录,此时发现对该表的插入操作速度很慢,请分析插入速度慢的原因。(3分)

在不改变数据库服务器硬件和表结构、不清理数据的情况下,请说明应如何优化此表的插入操作。(2分)

②在解决了①中的问题后,程序员在数据库中执行如下SQL语句:

SELECT商品编号,sum(总价)FROM销售明细表

WHERE单价>50

GROUP BY商品编号

请在不改变该SQL语句的情况下,给出提高该查询执行效率的方案。(5分)

点击查看答案

第3题

Barter usually takes the place of money transaction where______.

A.there is only salt

B.metal tools are used

C.the people's trading needs are fairly simple

D.money is unheard of

点击查看答案

第4题

Saving Money

Where you save your money often depends on what you are saving for. If you are saving to buy a dictionary or to go to a concert, then probably keep your money somewhere in your room.

If you are saving for a big purchase like a mountain bike or a school trip, where would you save your money One place to save money is the bank. Putting your money in a savings account will help your money earn more money. If you put your money in a piggy bank (猪形储蓄罐),one year later you'll still have the same amount of money you put in. If you put your money in a savings account, one year later, you'll have more money than you put in.

Why When you keep your money in a bank, your money earns interest. Interest is the amount of money a bank pays you to use your money. The bank uses your money (and the money of other people, too) to loan money to people and businesses.

The bank will send you a statement several times a year. A.bank statement tells you how much money there is in your account. It also tells you how much interest you have earned. If you leave your money in the bank, you can watch it grow!

Another way you can save money is to buy a certificate of deposit or CD. If you have some money that you don't need to use for a long time, this is a good way to make your money grow.You can buy a CD at a bank. You agree not to use the money for a certain period of time.

That period might be from six months to five years. You can't touch your money during that time. If you do, you must pay .a penalty, or fee.

Since the bank is using your money for that time period, it will pay you interest. You will earn more interest with a CD than in a savings account. Can you guess why It's because you promise to leave your money in the bank for a certain period of time. Banks pay different rates of interest. So, you may want to compare rates in newspaper ads before buying a CD.

第 36 题 Which way will help your money earn more money.

A.Putting your money in your room.

B.Putting your money in a piggy bank,

C.Putting your money in your pocket.

D.Putting your money in a savings account.

点击查看答案

第5题

Saving Money Where you save your money often depends on what you are saving for If you are saving to buy a CD(光盘)or to go to a concert, then probably you would keep your money somewhere in your room.

If you are saving for a big purchase like a mountain bike or a school trip,where would you save your money?

One place to save money is the bank Putting your money in a savings account will help your money early more money If you put your money in a piggy bank(猪形储蓄罐),one year later you’11 still have the same amount of money you put in.If you put your money in a savings account,one year later, you’ll have more money than you put in Why?

When you keep your money in a bank,your money earns interest.Interest is the amount of money a bank pays you to use your money.The bank uses your money (and the money of other people,too)to loan money to people and businesses.

The bank will send you a statement several times a year A bank statement tells you how much money you have in your account,It also tells you how much interest you have earned.If you leave your money in the bank,you Can watch it grow!

Another way you can save money is to buy a certificate of deposit or CD.If you have some money that you don’t need to use for a long time,this is a good way to make your money grow.

You Can buy a cd at a bank.You agree not to use the money for a certain period of time That period might be from six months to five years.You Can’t touch your money during that time If you do,you must pay a penalty,or fee.

第6题:Your money will earn more money if you put it

A.in your room

B.in a piggy bank

C.in your pocket

D.in a savings account

点击查看答案

第6题

Saving Money Where you save your money often depends on what you are saving for.If you are saving to buy a dictionary or to go to a concert,then probably keep your money somewhere in your room.

If you are saving for a big purchase like a mountain bike or a school trip, where would you save your money?

One place to save money is the bank.Putting your money in a savings account will help your money earn more money.If you put your money in a piggy bank(猪形储蓄罐),one year later you’ll still have the same amount of money you put in

If you put your money in a savings account,one year late,you’ll have more money than you put in.Why?When you keep your money in a bank,your money earns interest.Interest is the amount of money a bank pays you to use your money. The bank uses your money(and the money of other people,too)to loan money to people and businesses.

The bank will send you a statement several times a year.A bank statement tells you how much money there is in your account,It also tells you how much interest you have earned

If you leave your money in the bank,you can watch it grow!Another way you can save money is to buy a certificate of deposit or CD. If you have some money that you don’t need to use for a long time,this is a good way to make your money grow.

You can buy a CD at a bank.You agree not to use the money for a certain period of time.

That period might be from six months to five years You can’t touch your money during that time.

If you do,you must pay a penalty,or fee.Since the bank is using your money for that time period,it will pay you interest.You will earn more interest with a CD than in a savings account.Can you guess why? It’s because

you promise to leave your money in the bank for a certain period of time. Banks pay different rates of interest. So,you may want to compare rates in newspaper ads before buying a CD.

第36题:Which way will help your money earn more money?

A.Putting your money in your room.

B.Putting your money in a piggy bank.

C.Putting your money in your pocket.

D.Putting your money in a savings account.

点击查看答案
热门考试 全部 >
相关试卷 全部 >
账号:
你好,尊敬的上学吧用户
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
谢谢您的反馈

您认为本题答案有误,我们将认真、仔细核查,
如果您知道正确答案,欢迎您来纠错

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
上学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反上学吧购买须知被冻结。您可在“上学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
上学吧
点击打开微信