Home > Article > Backend Development > Why Am I Getting "panic: sql: expected 1 destination arguments in Scan, not " When Querying JSONB Data in Go?
Error: "panic: sql: expected 1 destination arguments in Scan, not
When querying a PostgreSQL table with a JSONB column using db.QueryRow.Scan(), you may encounter the error "panic: sql: expected 1 destination arguments in Scan, not
The code snippet provided using db.QueryRow is trying to scan three fields (Id, Type, `
The above is the detailed content of Why Am I Getting "panic: sql: expected 1 destination arguments in Scan, not " When Querying JSONB Data in Go?. For more information, please follow other related articles on the PHP Chinese website!