mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8226808: PreparedStatement javadoc typo
Reviewed-by: bpb, joehw
This commit is contained in:
parent
136cfdb1e3
commit
d711c4e18e
1 changed files with 5 additions and 4 deletions
|
@ -47,12 +47,13 @@ import java.io.InputStream;
|
|||
* <P>
|
||||
* In the following example of setting a parameter, <code>con</code> represents
|
||||
* an active connection:
|
||||
* <PRE>
|
||||
* <pre>{@code
|
||||
* BigDecimal sal = new BigDecimal("153833.00");
|
||||
* PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES
|
||||
* SET SALARY = ? WHERE ID = ?");
|
||||
* pstmt.setBigDecimal(1, 153833.00)
|
||||
* pstmt.setInt(2, 110592)
|
||||
* </PRE>
|
||||
* pstmt.setBigDecimal(1, sal);
|
||||
* pstmt.setInt(2, 110592);
|
||||
* }</pre>
|
||||
*
|
||||
* @see Connection#prepareStatement
|
||||
* @see ResultSet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue