src/Action/MySqlTableCopier.php
public function copy( Table $src, Table $dest ) {

		$this->copy_structure( $src, $dest );
		$src_table  = $this->database->quote_identifier( $src->name() );
		$dest_table = $this->database->quote_identifier( $dest->name() );
		$query      = "INSERT INTO {$dest_table} SELECT * FROM {$src_table}";

		return (bool) $this->database->query( $query );
	}
public function copy( Table $src, Table $dest ) {

		$this->copy_structure( $src, $dest );
		$src_table  = $this->database->quote_identifier( $src->name() );
		$dest_table = $this->database->quote_identifier( $dest->name() );
		$query      = "INSERT INTO {$dest_table} SELECT * FROM {$src_table}";

		return (bool) $this->database->query( $query );
	}
public function copy ( Table $ src , Table $ dest ) { $ this -> copy_structure ( $ src , $ dest ) ; $ src_table = $ this -> database -> quote_identifier ( $ src -> name ( ) ) ; $ dest_table = $ this -> database -> quote_identifier ( $ dest -> name ( ) ) ; $ query = "INSERT INTO {$dest_table} SELECT * FROM {$src_table}" ; return ( bool ) $ this -> database -> query ( $ query ) ; }
Duplicates a table structure with the complete content

@param Table $src
@param Table $dest

@return bool
Duplicates a table structure with the complete content