It would be fair to take into consideration entire history not just several conflicts during the last 200 years.
Here is the list of all German-Polish and Russian-Polish conflicts in history and their outcomes:
First half of 10th century - Poland emerges on the political map of Europe as a state.
Around 960 - duke Mieszko I, the first fully historical ruler of Poland, begins to rule in Poland.
966 - Polish duke Mieszko I decides to baptise himself in order, among other reasons, to avoid German and other Christian "converting" invasions.
1) List of Polish-German military conflicts (in total 40 wars and smaller conflicts):
The uprising of the Slavic tribe Wkrzanie against German occupation (954) - according to historian H. Łowmiański, Polish forces provided support to Wkrzanie
Lausitz-Polish war - Markgraf of Lausitz Hodo invades Poland and the battle of Cedynia is fought (972)
- Poland completely defeats the invaders
1st Polish-German war - Poland invaded by emperor Otton II (979) -
Poland repulses the invaders
2nd Polish-German war (1002 - 1005) -
treaty of Poznan; draw unfavourable for Poland (German advance stopped but some territory lost)
3rd Polish-German war (1007 - 1013) -
treaty of Merseburg; Polish victory
4th Polish-German war and the decisive battle of Bautzen won by Polish forces (1014 / 1015 - 1018) - Poland captures Lausitz and Meissen -
treaty of Bautzen; Polish victory
5th Polish-German war (1028 - 1031) - Poland vs Germany (later Kievan Rus joined as German ally) -
Polish forces invade Saxony, but combined German-Russian counterattack in 1031 defeats them, Poland lost some territory to the Russians, Germany recaptured all previously lost territories
6th Polish-German war (1109) -
German forces invade Poland but are repulsed
7th Polish-German war (1157) -
German forces invade Silesia, burn the castle Glogow and advance into the province of Greater Poland; but then peace treaty is signed - draw
Brandenburgian Invasion of Western Pomerania (1180) -
Brandenburgians occupy Western Pomerania
2nd Lausitz-Polish war (1209 - 1211) -
Polish victory
1st Polish-Thuringen war (1225 - 1230) -
Polish victory
1st Polish-Brandenburg war (1238 - 1240) -
Polish victory
1st Greater Poland-Brandenburg war (1247 - 1252) -
Polish victory
2nd Greater Poland & Pomerelia vs Brandenburg war (1265 - 1273) -
Polish victory
Polish Invasion of Santok against Brandenburg and the battle of Mysliborz (1278) -
Polish victory
Brandenburgian Invasion of Rogozno (1296) -
Brandenburgian victory
Brandenburgian Invasion of Gdansk (1308) -
Brandenburgian victory
1st Polish-Teutonic war (1308 - 1309) -
Teutons capture Gdansk, Teutonic victory
Polish-Brandenburg combats in Greater Poland (1316) -
Brandenburgians repulsed
2nd Polish-Teutonic war (1327 - 1332) -
Teutons and their allies - Czechs - repulsed in the battles of Plowce and near Kalisz
Brandenburgian Invasion of Santok and Drezdenko (1370) -
Brandenburg recaptures Santok and Drezdenko
3rd Polish-Teutonic war ("The Great War") (1409 - 1411) -
Teutons defeated at Grunwald, Polish-Lithuanian decisive victory
4th Polish-Teutonic war ("The Hunger War") (1414) -
Polish victory, Polish forces invade and plunder the Teutonic state
5th Polish-Teutonic war (1431 - 1435) -
Polish victory
6th Polish-Teutonic war ("The Thirteen Years War") (1454 - 1466) -
Polish decisive victory, Poland recaptures Gdansk and Pomerelia
7th Polish-Teutonic war (1519 - 1521) -
Polish final victory, the Teutonic state is destroyed, Poland captures Warmia
Battle of Byczyna (1588) - fought against Austrian forces but commanded by Maximilian III Habsburg "der Deutschmeister" -
Polish victory, Austrian forces repulsed
The 2nd Northern War - the treaty of Malbork on 25.06.1656, Brandenburg joins the anti-Polish alliance; the treaties of Welawa on 19.09.1657 and Bydgoszcz on 06.11.1657 - Brandenburg abandons the anti-Polish coalition and enters into an anti-Swedish alliance with Poland -
The war was Polish pyrrhic victory over Sweden and her allies
The Kosciuszko Insurrection (1794) - Poland vs Russia (later Prussia joined as Russian ally) -
Polish defeat, in 1795 Poland as a fully independent state perishes from the map of Europe divided by Russia, Austria and Prussia
1st Greater Poland Uprising (1806) -
Polish victory, Greater Poland liberated from German rule and then welcomes entering forces of Napoleon
The Polish-Prussian war of 1806 - 1807 (Polish forces support forces of Napoleon) -
Polish victory
The Polish-Austrian war of 1809 and the battle of Raszyn -
Polish victory, lands occupied by Austria in 1795 return to the Duchy of Warsaw
2nd Greater Poland Uprising ("Poznan Uprising") (1848) -
Polish insurgents are defeated
3rd Greater Poland Uprising (1918 - 1919) -
Polish insurgents are victorious, Germans are repulsed from Greater Poland
1st Silesian Uprising (1919) -
Polish insurgents are defeated
2nd Silesian Uprising (1920) -
Polish insurgents are victorious
3rd Silesian Uprising (1921) -
Polish insurgents hold their territorial gains, Upper Silesia becomes part of Poland
The Invasion of Poland (1939) - Poland vs III Reich (later the USSR joined as German ally) -
Polish army is defeated by combined Nazi-Soviet forces
World War 2 (1939 - 1945) -
Poland is among victorious countries, Polish army in exile fought on many frontlines against the Nazi Germany
-------------------------
And here the list of Polish - Russian conflicts:
2) List of Polish-Russian military conflicts (in total 46 - 47 wars and smaller conflicts):
At the beginning most of Polish-Russian wars were small conflicts, but in a later period they were very devastating:
Russian Invasion of Grody Czerwienskie region in eastern Poland (981) -
Russian forces capture Grody Czerwienskie, Russian victory
Polish Recapture of Grody Czerwienskie and Invasion of Kiev (1018 - 1019) -
Polish forces win the battle of Wolyn and capture Kiev
4th Polish-German war (1028 - 1031) - Poland vs Germany (later Kievan Rus joined as German ally) -
see the result above
1st Polish Invasion of Rus (1069) -
Polish forces capture Kiev for the 2nd time, dethronize Kievian ruler and enthrone a new one
2nd Polish Invasion of Rus (1077) -
Polish forces capture Kiev for the 3rd time, dethronize Kievian ruler and enthrone a new one
Russian Invasion of the Polish borderland (1092) -
Russians and Kipchak people invade Poland and plunder some areas but are finally repulsed
Invasion of Poland by Wolodymyrek of Halych-Wolhynia (1124) -
Halych-Wolhynian forces defeated by Polish forces
1st Polish Invasion of Halych - Poles capture Przemysl (1124) -
Polish victory
Russian Invasion of Mazovia (1142) -
Russian forces plunder some parts of Mazovia but cannot capture any town or castle
Polish-Russian war for the city of Brzesc and the battle of Belz (1180 - 1183) -
inconclusive conflict
2nd Polish Invasion of Halych-Wolhynia (1189) -
Halych-Wolhynia suffered heavy losses but Polish forces repulsed
3rd Polish Invasion of Halych-Wolhynia (1199) -
Halych-Wolhynia plundered but Polish forces finally withdraw
2nd Invasion of Poland by Halych-Wolhynia and the battle of Zawichost (1205) -
Russian forces completely defeated
3rd Polish Invasion of Rus (1207) -
Polish forces plunder some territories but are repulsed
Polish Invasion of Wlodzimierz Wolynski (1214) -
Polish forces plunder some territories and withdraw
Invasion of Daniel duke of Wlodzimierz Wolynski against Poland (1218) -
Russian invasion repulsed
Three Polish-Hungarian Invasions of Rus (1219 - 1221) -
Ruthenian forces seriously shaken
Mazovian - Halych-Wolhynian war and the battle of Czerwien (1236) -
Polish (Mazovian) forces are defeated and have to withdraw
Polish-Halych-Wolhynian war and the battle of Gozlice (1280) -
Ruthenian-Tartar forces are defeated by Polish forces
4th Polish-Hungarian Invasion of Rus (1323) -
Polish-Hungarian forces conquer the entire south-western Rus
The war for the Duchy of Halych-Wolhynia (1340 - 1392) - Poland & Hungary vs Lithuania & Tatars & Halych-Wolhynia -
Poland gains control over Halych-Wolhynia
1st war of Poland-Lithuania against Moscow (1500 - 1503) -
Muscovite forces capture some territories of Lithuania, Lithuanian-Polish defeat
2nd war of Poland-Lithuania against Moscow and the battle of Orsza (1507 - 1508) -
the battle and the entire war is inconclusive, but Moscow has some territorial gains
3rd war of Poland-Lithuania against Moscow, the 2nd battle of Orsza and the battle of Polock (1512 - 1522) -
Muscovite forces completely defeated in the 2nd battle of Orsza
4th war of Poland-Lithuania against Moscow (1534 - 1537) -
war is inconclusive, Poland-Lithuania capture Homel while Russia capture Siebiez, peace treaty is signed in Moscow in 1537
1st Northern War (1558 - 1570) -
Poland gains almost entire Livonia, the outcome of this war is favourable for Poland
Russian Invasion of Livonia (1575) -
Russian forces capture most of Livonia
1st Polish-Russian war (1577 - 1582) -
Poles counterattack, recapture entire Livonia, capture some Russian territories including two mighty castles
1st "Dymitriada" - Polish Invasion of Russia (1604 - 1606) -
This attack causes chaos in Russian political circles
2nd "Dymitriada" - Polish Invasion of Russia, (1607 - 1610) -
Inconclusive, the full scale Polish-Russian war starts as the result of this event
2nd Polish-Russian war (Russia supported by Sweden) and the battle of Klushino (1609 - 1612),
Russian and Swedish armies completely defeated near Klushino, Polish forces capture Moscow for 2 years
3rd Polish-Russian war and the battle of Smolensk (1632 - 1634) -
Polish forces are victorious at Smolensk, the entire war is Polish victory
4th Polish-Russian war, part of the 2nd Northern War (1654 - 1667) -
Russian invasion - after many bloody battles Polish forces repulse Russian forces back to their motherland
War of the Polish Succession (1733 - 1738) -
the treaty of Vienna is signed, as the result of this war Russia gains influence on Polish politics
Bar Confederation (1768 - 1772) -
Bar Confederation is defeated by "Polish royalists" supported by Russia, this leads to the first partition of Poland
Polish-Russian war in defence of the 3rd May Constitution (1792) -
Polish forces surrender because the Polish king betrayed and started to support the Russians - the Constitution is abolished, this leads to the 2nd partition of Poland
The Kosciuszko Insurrection (1794) - Poland vs Russia (later Prussia joined as Russian ally) -
The insurgents are defeated, this leads to the 3rd and final partition of Poland
Napoleonic Wars - Poland supporting Napoleon against Russia (1797 - 1814) -
Poles share the fate of their ally Napoleon, the Duchy of Warsaw in Central Poland now becomes the autonomic and semi-independent Kingdom of Poland (Congress Poland), under Russian influence
November Uprising and the subsequent Polish-Russian War (1830 - 1831) -
After bloody war regular army of the semi-independent Kingdom of Poland (Congress Poland) is defeated, despite many victorious battles and heavy losses suffered by the Russians - the defeat was suffered because of incompetence of some Polish political leaders and high military commanders
January Uprising (1863 - 1864) -
Insurgents stood no real chance and were defeated
Siberian Uprising (1866) -
Insurgents defeated in the battle of Miszycha
Lodz Uprising (1905) -
Insurgents defeated
World War 1 - Polish Legions supporting Austria against Russia (1914 - 1918) -
Polish victory
Polish-Bolshevik war and the battle of Warsaw (1919 - 1921) -
Polish decisive victory, Polish independence is preserved, Red Army shattered
The Invasion of Poland (1939) - Poland vs III Reich (later the USSR joined as German ally) -
see above; Polish defeat
Anti-Communist Armed Resistance in Poland (1944 - 1963) -
Insurgents are wiped out by Polish pro-Communist and Soviet forces by 1963
=============================
Solidarity Movement and Anti-Communist Resistance in the 1980s -
Polish victory, in 1989 Communism in Poland is abolished