I have 2 identical tables in 2 different databases that reside on the same server. What would be the best way to copy data from table to another?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- sqlyog export query result as csv
Just to elaborate slightly on OMG Ponies' answer, you can use any
WHERE
clause, like so:Use:
The exists is simplified, but you left out if there's a primary key/auto_increment to worry about/etc.