mirror of
https://gitea.com/xorm/manual-en-US
synced 2025-10-06 00:22:54 +02:00
9.Execute SQL command
When you want insert
, update
or delete
, then use Exec
as below
sql := "update userinfo set username=? where id=?"
res, err := engine.Exec(sql, "xiaolun", 1)