
1 saximoer 2014-12-03 18:58:20 +08:00 返回几个User 对象的LIST 或者转成JSON 呗~ 不晓得有没有帮助 |
2 maroon 2014-12-03 21:21:27 +08:00 select * from user where id in (1,2,3,4); |
3 p8p8 OP @tornado.gen.coroutine def get_myfriens(self,friends): query = 'SELECT username, avatar_url FROM users WHERE mid IN (759428,480672);' cursor = yield self.execute(query) 这样会报错: psycopg2.ProgrammingError: operator does not exist: text = nteger LINE 1: SELECT username, avatar_url FROM users WHERE mid in (759428,... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. |
4 p8p8 OP 是我自己字段的问题,设置好了,谢谢大家! |