“TOP”与“TOP”之间的区别和“样本”在 TeraData SQL 中
TeraData SQL 中的“TOP”和“SAMPLE”有什么区别?它们是一样的吗?
What is the difference between "TOP" and "SAMPLE" in TeraData SQL? Are they the same?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自TOP 与 SAMPLE:
From TOP vs SAMPLE:
“Sample”命令:
这将为您提供表中 100 条不同记录的样本。
每次运行 SAMPLE 命令时都会给出不同的结果。
TOP 命令:
这将给出表的前 100 行。
每次运行 TOP 命令时都会给出相同的结果。
‘Sample’ command:
That will give you a sample of 100 different records from the table.
The SAMPLE command will give DIFFERENT results each time you run it.
TOP command:
This will give the first 100 rows of the table.
The TOP command will give you THE SAME results each time you run it.