You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/guides/20-cloud/10-using-databend-cloud/01-worksheet.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
---
2
2
title: Worksheets
3
3
---
4
+
4
5
import DbSVG from '@site/static/img/icon/database.svg'
5
6
import RoleSVG from '@site/static/img/icon/role.svg'
6
7
import WarehouseSVG from '@site/static/img/icon/warehouse.svg'
@@ -10,7 +11,7 @@ Worksheets in Databend Cloud are used to organize, run, and save SQL statements.
10
11
11
12
## Creating a Worksheet
12
13
13
-
To create a new worksheet, click on **Worksheets** in the sidebar and select **New Worksheet**.
14
+
To create a new worksheet, click on **Worksheets** in the sidebar and select **New Worksheet**.
14
15
15
16
If your SQL statements are already saved in an SQL file, you can also create a worksheet directly from the file. To do so, click the ellipsis icon <EllipsisSVG/> to the right of **New Worksheet**, then select **Create from SQL File**.
16
17
@@ -23,15 +24,17 @@ To edit and run an SQL statement:
23
24
24
25
3. Edit the SQL statement in the SQL editor.
25
26
4. Click on the warehouse icon <WarehouseSVG/> under the SQL editor and select a warehouse from the list.
26
-
4. Click **Run Script**.
27
+
5. Click **Run Script**.
27
28
28
29
The query result shows in the output area. You can click **Export** to save the whole result to a CSV file, or select one or multiple cells in the output area and press Command + C (on Mac) or Ctrl + C (on Windows) to copy them to your clipboard.
29
30
30
31
:::tip
32
+
33
+
- Multiple SQL statements in a single API call are not supported. Ensure that each SQL query in the worksheet ends with a single semicolon (;).
31
34
- To make it easier for you to edit SQL statements, you can select a table in the database list and click the "..." button next to it. Then, follow the menu prompts to choose to copy the table name or all column names to the SQL input area on the right in one click.
32
35
33
36
- If you enter multiple statements in the SQL input area, Databend Cloud will only execute the statement where the cursor is located. You can move the cursor to execute other statements. Additionally, you can use keyboard shortcuts: Ctrl + Enter (Windows) or Command + Enter (Mac) to execute the current statement, and Ctrl + Shift + Enter (Windows) or Command + Shift + Enter (Mac) to execute all statements.
0 commit comments