+ 2

can i join two sql queries in php ??

25th Aug 2016, 2:11 AM
Amit Singh
Amit Singh - avatar
4 Answers
+ 3
SELECT * FROM students WHERE id = 5 OR age > 18 if you to select from 2 different column SELECT * FROM students WHERE id = 5 union SELECT * FROM DETAIL where age >18
25th Aug 2016, 5:51 PM
Smit Shah
Smit Shah - avatar
+ 2
use union Ex: SELECT * FROM students WHERE id=5 UNION SELECT * FROM students WHERE age>18
25th Aug 2016, 4:56 AM
Tiger
Tiger - avatar
+ 2
yes u can join two sql queries in php
1st Sep 2016, 5:08 PM
Rohit Thatavarthi
Rohit Thatavarthi - avatar
+ 1
yes u can...
16th Oct 2016, 8:22 PM
Ganpat patel
Ganpat patel - avatar