Skip to content

Commit

Permalink
Merge branch 'main' of github.com:donsez/bd
Browse files Browse the repository at this point in the history
  • Loading branch information
donsez committed Nov 11, 2024
2 parents ed40aaa + 43d3620 commit 8755fee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jdbc-postgresql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ java -cp $APP_CLASSPATH $MAIN_CLASS
Change the password (the value is defined into [docker-compose.yml](../postgres/docker-compose.yml)) into the program `src/main/java/com/mkyong/jdbc/ConnectOnlyExample.java`.

Recompile the program with `mvn campile`.
Recompile the program with `mvn compile`.

Re-Run the program `src/main/java/com/mkyong/jdbc/ConnectOnlyExample.java` with
```bash
Expand Down Expand Up @@ -126,8 +126,7 @@ ResultSetMetaData metaData = rs.getMetaData();
Integer columnCount = metaData.getColumnCount();
String tableName = getTableName(columnNumber); //
String columnName = getColumnName(columnNumber); // to get the name of the column
String columnLabel = getColumnLabel(int columnNumber); // to get the name of the column
String tableName = getColumnLabel(int columnNumber); // to access the label of the column, which is specified after AS in the SQL query
String columnLabel = getColumnLabel(int columnNumber); // to access the label of the column, which is specified after AS in the SQL query

...

Expand Down

0 comments on commit 8755fee

Please sign in to comment.