问题 单项选择题

在数据库应用中,一般一个SQL语句可产生或处理一组记录,而数据库主语言语句一般一次只能处理一个记录,其协调可通过使用下列的( )技术实现。

A.指针(POINTER)

B.游标(CURSOR)

C.数组(DIMENSION)

D.栈(STACK)

答案

参考答案:B

解析: 在数据库应用中,一般一个 SQL语句可产生或处理一组记录,而数据库主语言语句一般一次只能处理一个记录,其协调可通过使用游标(CURSOR)技术实现。
相关知识点:
游标是系统为用户开设的一个数据缓冲区,存放SQL语句的执行结果,每个游标区都有一个名字。用户可以通过游标逐一获取纪录,并赋给主变量交由主语言进一步处理。

阅读理解

Read and answer the questions. (根据短文内容回答下列问题。)

    A businessman had worked too much. He found that he couldn't sleep at night, but often fell asleep

in the day. He became very worried, so he went to see his doctor. 

    "Can you help me, doctor?" he asked. I slept so well, but now I slept less than two hours at night. 

    The doctor looked him very carefully, gave him some tests, asked him to work less hard, and told

him to take some medicine to help him. He said he was sure that he was not seriously ill, and that he

would soon be better. 

    But the businessman grew worse instead of better. He slept even less than before at night and was

still falling asleep in his office. He visited the doctor again and again and it took the doctor a long time

to find out the reason: the businessman's wife was giving him the sleeping medicine in the morning and

the ones to keep him awake at night.

1.Why couldn't the businessman sleep at night?

      _________________________________________________

2.How long does he sleep now at night? 

      _________________________________________________

3.Did the doctor think the businessman had a serious problem?

      _________________________________________________

4.Did the businessman grow worse or better after seeing the doctor?

      _________________________________________________

5.Was the doctor able to find the real reason for the business's problem?

      _________________________________________________

6.Who was responsible for the businessman's problem?

       _________________________________________________

选择题