Skip to content

Commit 3f618a6

Browse files
authored
Merge pull request #89378 from damabe/1570680-Part10
SEOImprovement: User Story 1570680, Part 10
2 parents 941f012 + 5e1b305 commit 3f618a6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

articles/postgresql/connect-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Get the connection information needed to connect to the Azure Database for Postg
3030
2. From the left-hand menu in Azure portal, select **All resources**, and then search for the server you have created (such as **mydemoserver**).
3131
3. Select the server name.
3232
4. From the server's **Overview** panel, make a note of the **Server name** and **Server admin login name**. If you forget your password, you can also reset the password from this panel.
33-
![Azure Database for PostgreSQL server name](./media/connect-java/1-connection-string.png)
33+
![Azure Database for PostgreSQL server name](./media/connect-java/azure-database-postgresql-server-name.png)
3434

3535
## Connect, create table, and insert data
3636
Use the following code to connect and load the data into the database using the function with an **INSERT** SQL statement. The methods [getConnection()](https://www.postgresql.org/docs/7.4/static/jdbc-use.html), [createStatement()](https://jdbc.postgresql.org/documentation/head/query.html), and [executeQuery()](https://jdbc.postgresql.org/documentation/head/query.html) are used to connect to the database, drop, and create the table. The [prepareStatement](https://jdbc.postgresql.org/documentation/head/query.html) object is used to build the insert commands, with setString() and setInt() to bind the parameter values. Method [executeUpdate()](https://jdbc.postgresql.org/documentation/head/update.html) runs the command for each set of parameters.

0 commit comments

Comments
 (0)