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 中的脚本被编译或执行
基础教程推荐
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 无法解决整理冲突 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
