Phriction Knowledge Center - Hexavara Technology Crema Framework Crema Query Language : Getting Started Update
Update
Update
Update Record
Standard update query
UPDATE users SET name = 'New Name' WHERE email = 'email@to.me'
translated using Crema QL
tableName := "users" newValue := "New Name" email := "email@to.me" q := crema.Update(tableName).Set().Equal("name", newValue).Where().Equal("email", email)
to execute the query
crema.ExecuteNonQuery(q.QueryString)
Tags
None
Subscribers
None
- Last Author
- • galang
- Last Edited
- Oct 15 2019, 2:45 PM