Update table using sql function

I am trying to update a record stored in a SQL database.
Is there any way to do this using the sql.to() function?