Compare two strings:
SELECT StrComp("SQL Tutorial", "SQL Tutorial") AS CompString;
Try it Yourself »
The StrComp() function compares two strings.
The result is returned as an integer based on the comparison:
StrComp(
string1,
string2,
compare)
Parameter | Description |
---|---|
string1 and string2 | Required. The two strings to compare |
compare | Optional. The type of comparison to perform. Possible values: -1: Uses option compare 0: Binary comparison 1: Textual comparison 2: Comparison based on your database |
Works in: | From Access 2000 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!