SQL handleiding

SQL TUIS SQL Inleiding SQL-sintaksis SQL Kies SQL Kies Distinct SQL Waar SQL En, of, nie SQL Bestel deur SQL Voeg in SQL nulwaardes SQL-opdatering SQL verwyder SQL Kies Top SQL Min en Max SQL-telling, gemiddeld, som SQL Soos SQL Wildcards SQL in SQL Tussen SQL aliasse SQL sluit aan SQL Inner Sluit aan SQL Links Sluit aan SQL Reg Sluit aan SQL Volledige Aansluiting SQL Self Sluit aan SQL Unie SQL Groep deur SQL het SQL bestaan SQL Enige, Almal SQL Kies In SQL Voeg in Kies SQL-geval SQL nul-funksies SQL gestoorde prosedures SQL opmerkings SQL-operateurs

SQL- databasis

SQL Skep DB SQL Drop DB SQL Backup DB SQL Skep tabel SQL Drop Tabel SQL Verander Tabel SQL-beperkings SQL nie nul nie SQL Uniek SQL Primêre Sleutel SQL buitelandse sleutel SQL Check SQL verstek SQL-indeks SQL Outo-verhoging SQL datums SQL-aansigte SQL-inspuiting SQL Hosting SQL-datatipes

SQL- verwysings

SQL sleutelwoorde MySQL-funksies SQL Server funksies MS Access-funksies SQL Vinnige Verw

SQL voorbeelde

SQL voorbeelde SQL vasvra SQL-oefeninge SQL-sertifikaat

MS Access Replace() Funksie

❮ MS Access-funksies

Voorbeeld

Vervang "i" met "a" in die string:

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

Definisie en gebruik

Die Replace()-funksie vervang 'n substring binne 'n string, met 'n ander substring, 'n gespesifiseerde aantal kere.

Sintaksis

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

Parameterwaardes

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

Tegniese besonderhede

Werk in: Van Access 2000

❮ MS Access-funksies