We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for the great library. Is it possible to build a scalar subquery ( query in select ) without using join? I want to build these MySQL queries:
SELECT posts.id, ( select tagName FROM tags WHERE postTags.postId = posts.id ) AS postTags FROM posts WHERE id=1
SELECT posts.id, ( select GROUP_CONCAT(tagName SEPARATOR "^") FROM tags WHERE postTags.postId = posts.id ) AS postTags FROM posts WHERE id=1
The text was updated successfully, but these errors were encountered:
These queries would be better served by JOINs, which are available in the query builder. The group_concat can be done with func helper.
group_concat
Sorry, something went wrong.
And, if you really wanted to, you could use express(...) to build these.
express(...)
No branches or pull requests
Thanks for the great library.
Is it possible to build a scalar subquery ( query in select ) without using join?
I want to build these MySQL queries:
The text was updated successfully, but these errors were encountered: