Skip to main content

Command Results

On command pages, “update count” and “result set” describe the JDBC return format, not whether a command reads or writes data.

Return formatdbVisitor usageExamples
Update countexecuteUpdate, or Mapper write annotations/elements.SET, DEL, HSET
Result setQuery methods, or Mapper @Query / <select>.GET, INCR, LPOP
Depends on optionsChoose according to the options used.SET ... GET returns the old value as a result set.

INCR changes data but returns its new value in a result set. Update counts do not always mean affected rows: LPUSH returns the resulting list length.

See Reading Results for multi-column and multi-row results.