Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

select

Empfohlene Antworten

Veröffentlicht

Ich habe eine Tabelle und in der Tabelle eine Spalte KundeID die als int in der DB steht, wie holle ich aus der DB mehrere KundenID’s ??

So funkt es leider nicht ;(

Select irgendwas from test where KundeID =

(0548152,1681901,1681918,4381223,4381246,4381252,7569269,7569275,1290201,

7569281,7569298,7569306,7569312,7569329,7569335,7569341,7569358,7569364,

7569370,1999052,2168301,2168318,2428446,2428452,2428469,2428400,2428417,

2428423,2038389,2038395,2038478,0536137,1892288,1892294,2250178,2250190,

1892502,1892319,0534090,0534109,1686844,0534115,0539383,1838768,1838774,

1854566,1838596,1838604,1854543,2065819,2065825,2066262,2476899,2476907,

2476936,0548235,1682645,1682651)

falls es wichtig ist, ich benutze SQL Server

Vielen Dank

Hi,

auf alle Fälle sollte es mit OR gehen:

SELECT * FROM foo WHERE bar = 1234 OR bar = 4321

Bei mysql gibt es auch noch IN als Schlüsselwort:

SELECT * FROM foo WHERE bar IN (1234, 4321)

Ob es das beim SQL Server gibt, weiss ich nicht.

Gruß Jaraz

den IN () Ausdruck gibt es auch beim SQL Server, der sollte für diesen Zweck hilfreich sein. brauchst dann nur eine liste mit den KundenIDs zu erstellen und die Abfrage zusammenstellen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.