SQLContainer: Committing changes on the database

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?