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: articles/postgresql/flexible-server/connect-azure-cli.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ If the connection failed, try these solutions:
67
67
- if you've configured your server with private access in virtual networking, make sure your client machine is in the same virtual network.
68
68
69
69
## Run multiple queries using interactive mode
70
-
You can run multiple queries using the **interactive** mode. To enable interactive mode, run the following command
70
+
You can run multiple queries using the **interactive** mode. To enable interactive mode, run the following command.
71
71
72
72
```azurecli-interactive
73
73
az postgres flexible-server connect \
@@ -85,47 +85,47 @@ az postgres flexible-server connect \
85
85
You'll see the **psql** shell experience as shown below:
86
86
87
87
```bash
88
-
Command group 'postgres flexible-server' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
89
-
Password for earthyTurtle7:
90
-
Server: PostgreSQL 12.5
91
-
Version: 3.0.0
92
-
Chat: https://gitter.im/dbcli/pgcli
88
+
Password for starchylapwing9:
89
+
Server: PostgreSQL 13.14
90
+
Version: 4.0.1
93
91
Home: http://pgcli.com
94
-
postgres> create database pollsdb;
95
-
CREATE DATABASE
96
-
Time: 0.308s
97
-
postgres>exit
98
-
Goodbye!
99
-
Local context is turned on. Its information is saved in working directory C:\sunitha. You can run `az local-context off` to turn it off.
100
-
Your preference of are now saved to local context. To learn more, typein`az local-context --help`
92
+
postgres> SELECT 1;
93
+
+----------+
94
+
|?column?|
95
+
|----------|
96
+
| 1 |
97
+
+----------+
98
+
SELECT 1
99
+
Time: 0.167s
100
+
postgres>
101
+
```
102
+
103
+
## Execute single queries
104
+
You can run single queries against Postgres database using [az postgres flexible-server execute](/cli/azure/postgres/flexible-server?view=azure-cli-latest#az-postgres-flexible-server-execute).
0 commit comments