Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. "SHOW TABLES LIKE 'puzzle'"
  2.  
  3. $joined = [];
  4. foreach ((array)$table as $key => $value) {
  5. $tb = array_values($value)[0];
  6. $joined[]= "SELECT * FROM $tb ";
  7. }
  8. $table = join(" UNION ",$joined);
  9. //result SELECT * FROM puzzle1 UNION puzzle2 ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement