# SQL Befehl Länder

**URL:** <https://forum.shopware.com/t/sql-befehl-laender/98763>\
**Category:** Shopware 6 (German)\
**Created:** [2. März 2023 um 12:25 UTC](https://forum.shopware.com/t/sql-befehl-laender/98763 "2023-03-02T12:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jm1](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jm1](https://forum.shopware.com/u/jm1)\
**Post date:** [2. März 2023 um 12:25 UTC](https://forum.shopware.com/t/sql-befehl-laender/98763/1 "2023-03-02T12:25:34Z")

</div>

Hallo zusammen.

Ich wolte nicht alle Länder von hand deaktivieren. Kann mir jemand den SQL Befehl dafür geben? lg

---

<div class="post-metadata">

**Author:** ![great2gether](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/great2gether/32/12887_2.png) [@great2gether](https://forum.shopware.com/u/great2gether)\
**Post date:** [26. Februar 2024 um 00:50 UTC](https://forum.shopware.com/t/sql-befehl-laender/98763/2 "2024-02-26T00:50:59Z")

</div>

In der zweiten Zeile muss die korrekte Sales Channel id eingesetzt werden.

```auto
DELETE FROM sales_channel_country

WHERE sales_channel_id = UNHEX('018dewirhtelirwthlli4002847b5cf34b')

AND country_id IN (SELECT id FROM country WHERE iso != 'DE');

```
