Removing Temporary tables to enable MySQL replication using GTID -


i exploring mysql replication using global transaction identifiers. came across restrictions on replications gtids in mysql documentation. 1 of limitation temporary tables . focusing on possible options remove temporary tables . here sample query

select t1.* , r1.* tmp_100 t1 left join  real_table r on (t1.id = r1.id)  

my questions

  1. assume tmp_100 single column table . can re-write above query replacing left-join in clause ?

    select r1.* real_table r r.id in (:id_s)

  2. if tmp_100 multi-column table how re-write queries using temp tables ?. 1 option use real table instead of temp table.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -