SQL Container: how to update an existing record

Hi guys,

could you give me a sample code on how can i update an existing record on the database. Do i need to fetch the Primary Key before using the commit?