Returns a String
enclosed in single quotes. Any occurrence of a
single quote within the string will be replaced by two single quotes.
Examples of the conversion: Value Result Hello 'Hello' G'Day 'G''Day' 'G''Day' '''G''''Day''' I'''M 'I''''''M'
val | a character string |
NullPointerException | if val is null | |
SQLException | if a database access error occurs |
@implNote
JDBC driver implementations may need to provide their own implementation
of this method in order to meet the requirements of the underlying
datasource.
Diagram: Statement