Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

该实现,一个对象似乎只支持生成一条插入,没必要用 SQL 的问号语法吧? #85

Closed
qqiwei opened this issue Apr 6, 2021 · 0 comments

Comments

@qqiwei
Copy link

qqiwei commented Apr 6, 2021

sql = 'insert into %s (%s) values (%s)' % (self.__table__, ','.join(fields), ','.join(params))

该实现,一个 User 对象,似乎只能对应生成一条插入。
没必要用 SQL 的问号语法( values (?,?,?,?) )吧?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants