Scripts in SQL are compiled or executed(SQL 中的脚本被编译或执行)
问题描述
这有点像存在的怀疑...
This is like a little existential doubt...
在 SQL 中运行脚本的正确说法是什么?
Which is the right way to say that you run a script in SQL?
我编译了脚本 xxxx
I compiled the script xxxx
我执行了脚本 xxxx
I executed the script xxxx
我知道问这个有点奇怪和菜鸟,但我需要知道.
I know is a little weird and noob to ask this, but I need to know.
我很确定第二种方法是正确的,但我需要更多的意见.
I'm very sure the second way is the correct one, but I need more opinions.
非常感谢.
推荐答案
这取决于您实际想说的内容.
It depends on what you actually want to say.
SQL Server 中的所有查询在执行之前都遵循相同的过程.
All queries in SQL Server follow the same process before they are executed.
- Parse - 语句被分解为单独的单词.在此步骤中检测到语法错误和拼写错误.
- 验证(又名解析)——确保存在对象的名称以及正确的所有权权限.
- 优化 - SQL Server 探索了执行查询的不同方式.
- 编译 - SQL Server 生成执行计划(执行树的二进制表示)
最后
- 执行
这篇关于SQL 中的脚本被编译或执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:SQL 中的脚本被编译或执行


- 在SQL中,如何为每个组选择前2行 2021-01-01
- SQL 临时表问题 2022-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 更改自动增量起始编号? 2021-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01