SQL 中的脚本被编译或执行

Scripts in SQL are compiled or executed(SQL 中的脚本被编译或执行)
本文介绍了SQL 中的脚本被编译或执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

这有点像存在的怀疑...

This is like a little existential doubt...

在 SQL 中运行脚本的正确说法是什么?

Which is the right way to say that you run a script in SQL?

  1. 我编译了脚本 xxxx

  1. 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 中的脚本被编译或执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
SQL query to group by day(按天分组的 SQL 查询)
What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
Include missing months in Group By query(在 Group By 查询中包含缺失的月份)