Merge pull request #2528 from g2vinay/fix-links-sql-docs

Update SQL ref docs.
This commit is contained in:
Daniel Jurek 2024-03-07 13:53:51 -08:00 коммит произвёл GitHub
Родитель 8b9e21a585 d96249cfcb
Коммит c624fc4fc4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -33,9 +33,9 @@ Connect to Azure Database for MySQL from your applications using the open-source
Connect to Azure Database for MySQL using JDBC and select all records in the sales table. You can get the JDBC connection string for the database from the Azure Portal.
```java
String url = String.format("jdbc:mysql://fabrikamysql.mysql.database.azure.com:3306/fabrikamdb?verifyServerCertificate=true&useSSL=true&requireSSL=false");
String url = String.format("jdbc:mysql://[your-database-hostname].mysql.database.azure.com:3306/[your-database-name]?verifyServerCertificate=true&useSSL=true&requireSSL=[true|false]&user=[your-username]&password=[your-password]");
try {
Connection conn = DriverManager.getConnection(url, "frank@fabrikamysql", "aBcDeFgHiJkL");
Connection conn = DriverManager.getConnection(url, "USERNAME", "PASSWORD");
String selectSql = "SELECT * FROM SALES";
Statement statement = conn.createStatement();
ResultSet resultSet = statement.executeQuery(selectSql);

Просмотреть файл

@ -33,7 +33,7 @@ Connect to Azure Database for PostgreSQL from your applications using the open-s
Connect to Azure Database for PostgreSQL using JDBC and select all records in the sales table. You can get the JDBC connection string for the database from the Azure Portal.
```java
String url = String.format("jdbc:postgresql://mypostgresdb.postgres.database.azure.com:5432/mydb?user=frank@mypostgresdb&password=AbCdEfGhIjK&ssl=true");
String url = String.format("jdbc:postgresql://[your-database-hostname].postgres.database.azure.com:5432/[your-database-name]?user=[your-username]@[your-database-hostname]&password=[your-password]&ssl=true");
Connection connection = null;
try {
connection = DriverManager.getConnection(url);