当前位置:网站首页>[DB written interview 366] stored procedures are codes stored in the database and have many advantages. Among the following statements, which are not the advantages of stored procedures are ()

[DB written interview 366] stored procedures are codes stored in the database and have many advantages. Among the following statements, which are not the advantages of stored procedures are ()

2022-06-21 08:14:00 DBA collection of Wheat Seedlings

Q

subject

A stored procedure is code stored in a database , It has many advantages . The advantage of the following statement that is not a stored procedure is ()

A、 The performance of data operation can be improved by precompiling mechanism

B、 It is convenient to express data by user view

C、 It can reduce the network traffic of client and server

D、 It can realize certain security control

A

answer

In this question , For options A, Stored procedures can be compiled and run many times in the database , Therefore, the compilation time can be reduced when multiple calls are made , To improve efficiency , So options A Your description is correct . therefore , Options A error .

For options B, It is convenient to express data by user view , This is the function of the view, not the function of the stored procedure , So options B Wrong description of . therefore , Options B correct .

For options C, Stored procedures are defined by a large number of users SQL Statements are stored in the database , The user only needs to complete the call by the name of the stored procedure , In other words, when calling, you only need to transfer the name and parameters of the called stored procedure to the database through the network , Without the need to transmit a large number of SQL sentence , Therefore, the network traffic is reduced , So options C The description is correct . therefore , Options C error .

For options D, Because stored procedures encapsulate SQL Code , Therefore, certain safety control can be realized , The description is correct . therefore , Options D error .

therefore , The answer to this question is B.

DB Written interview history link

http://mp.weixin.qq.com/s/Vm5PqNcDcITkOr9cQg6T7w

About Me: Wheat seedling

● The author of this article : Wheat seedling , Just focus on Database Technology , Pay more attention to the application of Technology

● Author's blog address :http://blog.itpub.net/26736162/abstract/1/

● The title of this series comes from the author's study notes , Partially collated from the network , If there is any infringement or improper place, please understand

● copyright , Welcome to share this article , Reprint please keep the source

● If there is anything wrong with the answer to the question , I also hope that you can criticize and correct , Common progress

原网站

版权声明
本文为[DBA collection of Wheat Seedlings]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221502095583.html