SHARE
TWEET

Untitled

a guest Feb 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ....
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top