Actually I meant to say update:
Table<Record> table = ...
UpdateQuery<Record> update = this.context.updateQuery(table);
update.setRecord(...*some record where I want to say add() for a field.*..);
update.addConditions(...some condition...);

On Tuesday, February 18, 2014 10:16:02 PM UTC-8, Vijay Ganesan wrote:
>
>
> Have this way of inserting a Record:
> Table<Record> table = ...
> InsertQuery<Record> insertQuery = context.insertQuery(table);
> Record> record = ... create record and set values for columns ....
> insertQuery.addRecord(record);
>        
> Now, what I want is - for a particular integer column in the record, I 
> want to set value to be 'current value + 1' i.e. increment the current 
> column value that exists in the database for that row by 1. How can I do 
> this? Unclear how Field's add() be use in conjunction with this approach of 
> inserting a Record.
>
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to