Summary -

In this topic, we described about the Difference between SEARCH and SEARCH ALL with detailed example.

Below are the differences in between SEARCH and SEARCH ALL.

SEARCH SEARCH ALL
SEARCH is a linear or sequential search. SEARCHALL is binary search.
Initialization & incrementing of index is required. Only initialization is required of an index. Incrementing is taken care automatically by the system.
Multiple WHEN conditions can be coded. Only one WHEN condition can be coded.
Multiple arithmetic operators like =, >, <, <=, >=, NOT= can be used. Only = operator is allowed.
Searching is slow. Searching is faster.
SEARCH can use on single dimensional & multidimensional arrays. SEARCH ALL can use for only single dimensional arrays.
Data inside an array need not be in sorted order. Data inside an array must be in a sorted order.