bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Split() Function

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind MS Access Split() Function?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ Split("SQL Tutorial is fun!") AS SplitString;
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The Split() function splits a string into an array of strings.
Definition and Usage
MS Access Split() Function

Split strings

SELECT Split("SQL Tutorial is fun!") AS SplitString;
Result: {"SQL",
 "Tutorial", "is", "fun!"}
 SELECT Split ("red:green:yellow:blue", ":", 2) AS SplitString;
Result: {"red", "green"}

Definition and Usage

The Split() function splits a string into an array of strings.

Syntax

Split(
string
,
separator
,
limit
,
compare
)

Parameter Values

ParameterDescription
stringRequired. The string to split
separatorOptional. The separator used to split the string. The default is a space character
limitOptional. The number of strings to be returned. The default is -1, which returns all strings (splitted)
compareOptional. 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

Technical Details

Works in:From Access 2000

Previous

MS Access Space() Function

Next

MS Access Str() Function