[英]How to query a TempView in Databricks
I have create a tempview as such as:我创建了一个临时视图,例如:
df.createOrReplaceTempView("table_test")
However, when I run the following command it doesn't work但是,当我运行以下命令时,它不起作用
%sql select top 10 * from table_test;
Try the following尝试以下
%sql select * from table_test limit 10;
top 10
is more specific to sql server and not the sql engine being used by your notebooks. top 10
更特定于 sql server,而不是笔记本使用的 sql 引擎。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.