gpt4 book ai didi

sql - 为什么解释存储过程?

转载 作者:行者123 更新时间:2023-12-04 18:29:36 25 4
gpt4 key购买 nike

这个问题困扰了我很长时间。
SQL 是否被解释?如果是,那么存储过程呢?为什么一个人必须一直解释它们?这将是非常非常低效的...他们不应该被编译和存储以备将来使用吗?

最佳答案

请参阅此链接:http://publib.boulder.ibm.com/infocenter/soliddb/v6r3/index.jsp?topic=/com.ibm.swg.im.soliddb.sql.doc/doc/sql.html

第三个要点:

SQL is generally an "interpreted" language rather than a "compiled" language. To execute one or more SQL statements, you typically execute a separate program that reads your script and then executes it. No "compiled program" or "executable" is generated and stored for later use. Each time you run the program, it is interpreted again. (Stored Procedures can be re-used without necessarily re-interpreting them. Stored Procedures are discussed briefly in solidDB SQL syntax and extensively in Stored procedures, events, triggers, and sequences.

关于sql - 为什么解释存储过程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19809078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com