Dec 23, 2015
0
Level 1
How to use Union in DB::select() query ?
i use the following code
DB::select('select mobno from students UNION select mobno from teachers')
but it make an error pls help me
Please or to participate in this conversation.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i use the following code
DB::select('select mobno from students UNION select mobno from teachers')
but it make an error pls help me
Please or to participate in this conversation.