根据文档,我正在这样做var thingname string = "asdf";var id interr = database.QueryRow("SELECT id from things where thing = ?", thingname).Scan(&id)但 Postgres 说ERROR: syntax error at end of input at character 41STATEMENT: SELECT id from things where thing = ?我看不出我做的与演示代码有很大不同。我正在使用pq。
- 2 回答
- 0 关注
- 234 浏览
添加回答
举报
0/150
提交
取消