SQL -Tutorial

SQL-HOME SQL-Einführung SQL-Syntax SQL-Auswahl SQL Wählen Sie Eindeutig aus SQL-Wo SQL Und, Oder, Nicht SQL-Reihenfolge nach SQL einfügen in SQL-Nullwerte SQL-Update SQL-Löschen SQL-Auswahl oben SQL-Min und -Max SQL-Anzahl, Durchschnitt, Summe SQL-ähnlich SQL-Platzhalter SQL-Eingang SQL zwischen SQL-Aliase SQL-Joins SQL Inner Join SQL-Left-Join SQL-Rechtsverknüpfung Vollständiger SQL-Join SQL-Self-Join SQL-Union SQL-Gruppierung nach SQL-Haben SQL existiert SQL Beliebig, Alle SQL-Auswahl in SQL-Insert in Select SQL-Fall SQL-Null-Funktionen Gespeicherte SQL-Prozeduren SQL-Kommentare SQL-Operatoren

SQL- Datenbank

SQL DB erstellen SQL-Drop-DB SQL-Sicherungsdatenbank SQL-Tabelle erstellen SQL-Drop-Tabelle SQL Alter-Tabelle SQL-Einschränkungen SQL nicht null SQL-eindeutig SQL-Primärschlüssel SQL-Fremdschlüssel SQL-Check SQL-Standard SQL-Index Automatisches SQL-Inkrement SQL-Daten SQL-Ansichten SQL-Injektion SQL-Hosting SQL-Datentypen

SQL- Referenzen

SQL-Schlüsselwörter MySQL-Funktionen SQL Server-Funktionen MS Access-Funktionen SQL-Schnellref

SQL- Beispiele

SQL-Beispiele SQL-Quiz SQL-Übungen SQL-Zertifikat

MS Access Replace()- Funktion

❮ MS Access-Funktionen

Beispiel

Ersetzen Sie "i" durch "a" in der Zeichenfolge:

SELECT Replace("My name is Willy Wonka", "i", "a") AS ReplaceString;

Definition und Verwendung

Die Funktion Replace() ersetzt eine Teilzeichenfolge innerhalb einer Zeichenfolge durch eine andere Teilzeichenfolge eine bestimmte Anzahl von Malen.

Syntax

Replace(string1, find, replacement, start, count, compare)

Parameterwerte

Parameter Description
string1 Required. The original string
find Required. The substring to search for in string1
replacement Required. The substring to replace find in string1
start Optional. The start position in string1 to begin the search. If omitted, start is 1
count Optional. The number of replaces to perform. If omitted, it will replace all occurrences of find with replacement
compare Optional. The type of string comparison.

Possible values:
-1: Use the setting of Option Compare
0: Binary comparison
1: Textual comparison
2: Comparison based on info in your database

Technische Details

Arbeitet in: Ab Access2000

❮ MS Access-Funktionen