简体   繁体   中英

SQL expected 0 arguments, got 1

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM