Browse Source

更新说明

master
guzeng 3 years ago
parent
commit
be05d170be
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      README.md

+ 5
- 0
README.md View File

@ -20,5 +20,10 @@ list,err := new(Query).Db(dbname).Table(tablename).Where("id=?").Where("name=?")
list,err := new(Query).Db(dbname).Table(tablename).Join([]string{jointable,tablename.id=jointable.cid,"LEFT"}).Where("id=?").Where("name=?").Value(1).Value("test").Select() list,err := new(Query).Db(dbname).Table(tablename).Join([]string{jointable,tablename.id=jointable.cid,"LEFT"}).Where("id=?").Where("name=?").Value(1).Value("test").Select()
更新
ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?").Value("xxx").Value("test").Update()
插入
ret,err := new(Query).Db(dbname).Table(tablename).Data("name=?").Data("depart=?").Value("xxx").Value("test").Create()
``` ```

Loading…
Cancel
Save