getString
Converts the buffer for provided column index to a String?
Returns null if that index was NULL
in the result. Conversion of the result to String
happens as follows:
For column with
DATE
type, delegates to getDate, then converts to stringFor column with
TIME
/TIME2
type, delegates to getDuration, then converts to StringFor column with
DATETIME
/TIMESTAMP
/DATETIME2
/TIMESTAMP2
type, delegates to getDateTime, converts to StringOtherwise, delegates to getBytes and converts individual bytes to chars.
Parameters
index
Integer index of the column to read