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.

Empfohlene Antworten

Veröffentlicht

Hi,

Ich habe ein fertiges SQL-Statement, also keine Möglichkeit in die Zusammenstellung des Statements einzugreifen.

Zum Beispiel:

"SELECT Name FROM Kunden WHERE Name='Supervisor O'Boyle'

Problem ist das Hochkomma im String.

Ich muss nun an einer zentralen Stelle wo die Statemens "durch kommen",

das Problem abfangen.

Weiß jemand wie ich das abfangen kann?

Vielen Dank!

"SELECT Name FROM Kunden WHERE Name='Supervisor O'Boyle'

Das Statement wird wohl nicht so korrekt sein. Reines SQL hat zu Beginn keine ". Du wirst wohl Dein Statement als String Parameter an einer Funktion übergeben / erhalten.. Es wäre Hilfreich, wenn Du Deine Sprache nennst, mit der Du arbeitest

Problem ist das Hochkomma im String.

Ich muss nun an einer zentralen Stelle wo die Statemens "durch kommen",

das Problem abfangen.

Du möchtest das Problem nennen

Grundsätzlich ist im SQL-Standart spezifiziert, das einfache Hochkommata (') durch ein weiteres Maskiert wird (also: '' (nicht " (SHift+2))).

Da es aber SQL-Varianten wie Sand am Meer gibt, ist nicht gesagt, das das bei dir klappt.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.