SQL -zelfstudie

SQL HOME SQL-intro SQL-syntaxis SQL-selectie SQL Select Distinct SQL waar SQL en, of, niet SQL-bestelling op SQL invoegen in SQL-nulwaarden SQL-update SQL verwijderen SQL Selecteer Top SQL Min en Max Aantal SQL, Gem, Som SQL Vind ik leuk SQL-jokertekens SQL In SQL Tussen SQL-aliassen SQL-joins SQL Inner Join SQL Left Join SQL juiste join Volledige deelname aan SQL Zelf lid worden van SQL SQL-unie SQL Groeperen op SQL hebben SQL bestaat SQL Alle, Alle SQL Selecteren in SQL invoegen in selecteren SQL-geval SQL Null-functies Op SQL opgeslagen procedures SQL-opmerkingen SQL-operators

SQL- database

SQL creëren DB SQL Drop-DB SQL back-up DB SQL-tabel maken SQL-droptabel SQL-wijzigingstabel SQL-beperkingen SQL niet null SQL Uniek Primaire SQL-sleutel SQL externe sleutel SQL-controle SQL-standaard SQL-index Automatische SQL-verhoging SQL-datums SQL-weergaven SQL injectie SQL-hosting SQL-gegevenstypen

SQL- verwijzingen

SQL-trefwoorden MySQL-functies SQL Server-functies MS Access-functies Snelle SQL-referentie

SQL- voorbeelden

SQL-voorbeelden SQL-quiz SQL-oefeningen SQL-certificaat

MS Access Replace() Functie

❮MS Access-functies

Voorbeeld

Vervang "i" door "a" in de string:

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

Definitie en gebruik

De functie Replace() vervangt een subtekenreeks binnen een tekenreeks, met een andere subtekenreeks, een bepaald aantal keren.

Syntaxis

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

Parameterwaarden

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

Werkt in: Van Access 2000

❮MS Access-functies