Partager via


getString Method (java.lang.String) (SQLServerResultSet)

Retrieves the value of the designated column name in the current row of this SQLServerResultSet object as a String in the Java programming language.

public java.lang.String getString(java.lang.String columnName)

Paramètres

columnName

A String that contains the column name.

Valeur de retour

A String value.

Exceptions

SQLServerException

Notes

This getString method is specified by the getString method in the java.sql.ResultSet interface.

All columns in SQL Server can be returned as a String. This means that a String representation of all number-based and character-based types, and a hex-string representation of binary columns such as binary, varbinary, varbinary(max), image, timestamp, and uniqueidentifier, can be returned.

Location sensitive types such as money, smallmoney, datetime, smalldatetime, float, real, decimal, and numeric will return the canonical toString() format for the underlying value of the type.

User defined types are returned as hexadecimal String values.

Voir aussi

Référence

SQLServerResultSet Class

Concepts

getString Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members