TSqlResult

Iterator for an SQL result set.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TSqlResult

Source

Sql.Result.pas (48)

Description

FetchRow fetches the next row from the result and returns False when no more row is present. The iterator is initialized before the first row so FetchRow should be called for the first row as well. Use the Read...() functions to fetch individual column values in the order in which they appear in the originating SQL query. No type conversions are applied during calls to the Read...() functions so reading a value of the wrong type will raise an exception. Also, reading beyond the last column and the last row will raise an exception.

Methods

ScopeVisibilityResultNameDescription
InstancepublicTInteger32GetRowCount()
InstancepublicTRecordTypeGetType()
InstancepublicTBooleanFetchRow()
InstancepublicTBooleanReadNull() Returns True when the current column value is NULL and moves the iterator position to the next value. If False is returned, the iterator position is kept at the current column value so it can be read using one of the other Read...() functions.
InstancepublicTTextReadText()
InstancepublicTIntegerReadInteger()
InstancepublicTDecimalReadDecimal()
InstancepublicTFloatingPoint64ReadFloatingPoint()
InstancepublicTBooleanReadBoolean()
InstancepublicT2dFloatingPoint64PointReadFloatingPoint64Point()
InstancepublicTFloatingPoint64IntervalReadFloatingPoint64Interval()
InstancepublicTRgbColorReadColor()
InstancepublicTUriReadUri()
InstancepublicTUuidReadUuid()
InstancepublicTMemoryBlockReadByteBlock()
InstancepublicTNamedFileReadNamedFile()
InstancepublicTXmlValueReadXmlValue()
InstancepublicT2dGeometryRead2dGeometry()
InstancepublicTRecordSetReadRecordSet()
InstancepublicTTypeReadType()
InstancepublicTDateTimeReadDateTime()
InstancepublicTGregorianDateReadDate()
InstancepublicTGregorianTimeReadTime()
InstancepublicTGregorianInstantReadInstant()
InstancepublicTValueReadValue()
InstancepublicTValueOld_ReadValue(Type_: TType)