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

支持AS语法(别名)吗? #71

Open
xuxucode opened this issue Aug 26, 2019 · 0 comments
Open

支持AS语法(别名)吗? #71

xuxucode opened this issue Aug 26, 2019 · 0 comments

Comments

@xuxucode
Copy link

使用 AS 指定列名,比如:

let rows = yield db.select('table-name', {
  columns: ['author AS owner'],
});

以上用法会报错:unknown column 'author AS owner'
正确的用法是什么?能否支持?

@xuxucode xuxucode changed the title 支持AS语法(列别名)吗? 支持AS语法(别名)吗? Aug 26, 2019
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

1 participant