Platforms to show: All Mac Windows Linux Cross-Platform

Back to JavaResultSetMBS class.

JavaResultSetMBS.updateBlob(column as Integer, value as JavaBlobMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a java.sql.Blob value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

column: the first column is 1, the second is 2, ...
value: the new column value

See also:

Some examples using this method:

JavaResultSetMBS.updateBlob(column as string, value as JavaBlobMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a java.sql.Blob value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

column: the name of the column
value: the new column value

See also:

JavaResultSetMBS.updateBoolean(column as Integer, value as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a boolean value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateBoolean(column as string, value as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a boolean value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateByte(column as Integer, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a byte value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateByte(column as string, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a byte value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateBytes(column as Integer, Value as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a byte array value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
column: column index starting at 1.
Value: The new byte array as a string.

See also:

JavaResultSetMBS.updateBytes(column as string, Value as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 11.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a byte array value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
column: The column name.
Value: The new byte array as a string.

See also:

JavaResultSetMBS.updateClob(column as Integer, value as JavaClobMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a java.sql.Clob value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

column: the first column is 1, the second is 2, ...
value: the new column value

See also:

Some examples using this method:

JavaResultSetMBS.updateClob(column as string, value as JavaClobMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a java.sql.Clob value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

column: the name of the column
value: the new column value

See also:

JavaResultSetMBS.updateDate(column as integer, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates date value.

You need to create a java.sql.Date object yourself to use this.

See also:

JavaResultSetMBS.updateDate(column as string, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates date value.

You need to create a java.sql.Date object yourself to use this.

See also:

JavaResultSetMBS.updateDouble(column as Integer, value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a double value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateDouble(column as string, value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a double value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateFloat(column as Integer, value as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a float value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateFloat(column as string, value as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a float value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateInt(column as Integer, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with an int value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateInt(column as string, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with an int value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateLong(column as Integer, value as int64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a long value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateLong(column as string, value as int64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a long value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateNull(column as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Gives a nullable column a null value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...

See also:

JavaResultSetMBS.updateNull(column as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a null value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column

See also:

JavaResultSetMBS.updateRow

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the underlying database with the new contents of the current row of this ResultSet object.
Example
Var r as JavaResultSetMBS
Var db as JavaConnectionMBS // your database
Var s as JavaStatementMBS

s=db.createStatement
r=s.executeQuery("SELECT test_id from myTable")

if r<>Nil then
while r.NextRecord
r.updateInt("test_id",10+r.getInt("test_id"))
r.updateRow
wend
end if

This method cannot be called when the cursor is on the insert row.

See the java documentation for details on java.sql.ResultSet.updateRow.

Some examples using this method:

JavaResultSetMBS.updateShort(column as Integer, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a short value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateShort(column as string, value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a short value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateString(column as Integer, value as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a String value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

Parameters:
columnIndex - the first column is 1, the second is 2, ...
x - the new column value

See also:

JavaResultSetMBS.updateString(column as string, value as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates the designated column with a String value.

The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
columnName - the name of the column
x - the new column value

See also:

JavaResultSetMBS.updateTime(column as integer, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates time value.

You need to create a java.sql.Time object yourself to use this.

See also:

JavaResultSetMBS.updateTime(column as string, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates time value.

You need to create a java.sql.Time object yourself to use this.

See also:

JavaResultSetMBS.updateTimestamp(column as integer, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates timestamp value.

You need to create a java.sql.Timestamp object yourself to use this.

See also:

JavaResultSetMBS.updateTimestamp(column as string, value as JavaObjectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Java Database MBS Java Plugin 24.4 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Updates timestamp value.

You need to create a java.sql.Timestamp object yourself to use this.

See also:

The items on this page are in the following plugins: MBS Java Plugin.


The biggest plugin in space...