# Alle Länder einfügen - INSERT INTO sales\_channel\_country

**URL:** <https://forum.shopware.com/t/alle-laender-einfuegen-insert-into-sales-channel-country/87396>\
**Category:** Allgemein\
**Created:** [5. Mai 2021 um 07:51 UTC](https://forum.shopware.com/t/alle-laender-einfuegen-insert-into-sales-channel-country/87396 "2021-05-05T07:51:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FragenAnsForum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/fragenansforum/32/7849_2.png) [@FragenAnsForum](https://forum.shopware.com/u/FragenAnsForum)\
**Post date:** [5. Mai 2021 um 07:51 UTC](https://forum.shopware.com/t/alle-laender-einfuegen-insert-into-sales-channel-country/87396/1 "2021-05-05T07:51:08Z")

</div>

Hi,

ich versuche, in die sales\_channel\_country ALLE (252) Länder von Shopware einzufügen, um im Verkaufskanal nicht manuell auf jedes Land klicken zu müssen.

> INSERT INTO (sales\_channel\_id, country\_id)  
> VALUES (‚7FBE213331944552B15262AFEF0B7572‘, ‚8409F295D44A4D1C97C5EA84E3F41A30‘)

aber fails: „Cannot add or update a child row: a foreign key constraint fails“  
‚7FBE213331944552B15262AFEF0B7572‘ ist mein Sales Channel, ‚8409F295D44A4D1C97C5EA84E3F41A30‘ ein (Beispiel-)Land.

Gibt es eine Möglichkeit, es zu umgehen?  
Gibt es eine andere Möglichkeit, alle Länder hinzuzufügen?  
Bonus: Wie füge ich alle Länder zu einer Versandkostenmatrix hinzu - die aber bereits 6 Versandzonen hat (i.e. Versandland „NICHT IN“ ist keine Option…)
