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
You see similar output if the connection was successful.
59
59
@@ -129,7 +129,7 @@ Closed the connection to server372060240
129
129
```
130
130
131
131
## Run SQL File
132
-
You can execute a sql file with the command using `--file-path` argument, `-f`.
132
+
You can execute a sql file with the [az postgres flexible-server execute](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-execute)command using `--file-path` argument, `-f`.
133
133
134
134
```azurecli-interactive
135
135
az postgres flexible-server execute \
@@ -138,19 +138,29 @@ az postgres flexible-server execute \
138
138
```
139
139
140
140
**Example:**
141
+
Prepare a `test.sql` file. You can use the following test script with simple `SELECT` queries:
142
+
143
+
```sql
144
+
SELECT1;
145
+
SELECT2;
146
+
SELECT3;
147
+
```
148
+
149
+
Save the content to the `test.sql` file in the current directory and execute using following command.
0 commit comments