I'm executing the following stored procedure:
rows, err := w.repo.GetConn().Queryx("EXEC [Users].[User_Get] @ids", sql.Named("ids", tvp))
And getting the following error:
SQL: expected 0 arguments, got 1.
What's wrong and how to fix this?
问题出在driverName
我把mssql
而不是sqlserver
放在那里)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.