jjzjj

SequenceID

全部标签

sql - 为什么我不能在 golang 中使用多个参数 我的 sql 查询有什么问题?

我有多个参数的问题,我无法用sql查询实现2个参数。而且我仍然收到错误,错误显示mssql:“SequenceID”附近的语法不正确。我的查询sql有什么问题,或者我的代码有什么问题?packagemainimport("database/sql""fmt"_"github.com/denisenkom/go-mssqldb""github.com/gin-gonic/gin""net/http""time")funcmain(){db,err:=sql.Open("sqlserver","sqlserver://sa:@localhost:1433?database=CONFINS&

go - 2个参数如何实现,QueryRow如何实现参数SequenceID和MobilePhone

我在实现2个这样的参数时遇到问题:http://localhost:8080/SMSBlast/SequenceID?SequenceID=2&MobilePhone=85261415223如何查询两列SequenceID和MobilePhone得到SequenceID=2&MobilePhone=85261415223,我试了很多方法还是不行packagemainimport("database/sql""fmt"_"github.com/denisenkom/go-mssqldb""github.com/gin-gonic/gin""net/http""time")funcmain