If string1 is NULL, then the LENGTH function will return NULL. et's look at some Oracle LENGTH function examples and explore how to use the LENGTH function in Oracle/PLSQL.
SUBSTR( string, start_position, [ length ] ) Parameters or Arguments
string is the source string.
start_position is the position for extraction. The first position in the string is always 1.
length is optional. It is the number of characters to extract. If this parameter is omitted, the SUBSTR function will return the entire string.
NOTE
If start_position is 0, then the SUBSTR function treats start_position as 1 (ie: the first position in the string). If start_position is a positive number, then the SUBSTR function starts from the beginning of the string. If start_position is a negative number, then the SUBSTR function starts from the end of the string and counts backwards. If length is a negative number, then the SUBSTR function will return a NULL value.
SUBSTR( string, start_position, [ length ] ) Parameters or Arguments
string is the source string.
start_position is the position for extraction. The first position in the string is always 1.
length is optional. It is the number of characters to extract. If this parameter is omitted, the SUBSTR function will return the entire string.
NOTE
If start_position is 0, then the SUBSTR function treats start_position as 1 (ie: the first position in the string). If start_position is a positive number, then the SUBSTR function starts from the beginning of the string. If start_position is a negative number, then the SUBSTR function starts from the end of the string and counts backwards. If length is a negative number, then the SUBSTR function will return a NULL value.
1. It shows COST_REMARK for all the promos in the table. 2. It produces an error because the SUBQUERY gives an error. 3. Access Mostly Uused Products by 50000+ Subscribers 4. It produces an error because SUBQUERIES cannot be used with the case expression.