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

[Docs]: example for union #181

Open
gam6itko opened this issue Jun 11, 2024 · 0 comments
Open

[Docs]: example for union #181

gam6itko opened this issue Jun 11, 2024 · 0 comments
Assignees

Comments

@gam6itko
Copy link
Contributor

Describe the bug

I can't find union example. You should ad it!

something like this

$select = $this->db('prefixed', 'prefix_')
            ->select('*')
            ->from('table AS u')
            ->where('type', 'user')->orWhere('table.id', '<', 100);

        $select->union(
            $this->db('prefixed', 'prefix_2_')
                ->select('*')
                ->from('table AS u')
                ->where('type', 'admin')->orWhere('table.id', '>', 800)
        );

taken from here

To Reproduce

Try to search union here

https://cycle-orm.dev/docs/query-builder-complex/current/en

Media prove

No response

Describe the solution you would like

exmple for union

Additional context

No response

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