![]() |
SQL Select Statement mit Prüfung auf Zeichen an Stelle x
Ich brauche Eure Hilfe:
Ich habe ein Datenbankfeld vom Typ String. Typische Werte für das Feld sind 000111000 000100010 000110000 Jetzt möchte ich ein Select Statement so bauen, dass mir alle Datensätze angezeigt werden, an deren z.B. 5 Stelle im String eine 1 steht. Der Rest des Strings ist egal. Das Ergebnis wäre hier in dem Fall der Erste und dritte Datensatz. Hat jemand eine Realisierungsidee? |
Hallo BFeuskirchen 8)
SQL-Server SELECT * FROM DEINETABELE WHERE DEINFELD LIKE '____1%' Unterstrich steht für ein beliebiges Zeichen (hier 4 Mal) Gruß Paul Jr. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:04 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz