Loading topic
VARCHAR2 and character literals. This chapter assumes that you already know basic SELECT statements, WHERE clauses, string literals, the DUAL table, and the basic meaning of NULL.2 min readSELECT statements, VARCHAR2, string literals, the DUAL table, and the basic meaning of NULL. This chapter focuses on how Oracle SQL uses SUBSTR to return part of a character string.2 min readSELECT statements, use WHERE, and recognize VARCHAR2, string literals, DUAL, and NULL. Oracle's REPLACE function searches a character string for one literal substring and substitutes another string for every match.2 min readSELECT statements, use the DUAL table, and distinguish a NULL value from an empty string. You should also know that Oracle treats an empty string assigned to a character column as NULL.2 min readSELECT statements, use string literals and VARCHAR2 values, and understand the DUAL table. You should also know that Oracle positions characters from left to right starting at 1.2 min readSELECT statements, WHERE clauses, VARCHAR2 values, the DUAL table, and the role of NULL in SQL. The goal is to parse a string by locating a delimiter with INSTR, then extracting text around that delimiter with SUBSTR.2 min readREPLACE is simple. Real input often contains several unwanted characters. A phone number may contain parentheses, spaces, and hyphens. A product code may contain punctuation and inconsistent separators.2 min readSELECT statements, WHERE clauses, VARCHAR2 values, string literals, the DUAL table, and the basic meaning of NULL in SQL. The main goal is to predict what Oracle returns when a string operation receives an unusual position, length, or argument.2 min readSELECT statements, WHERE clauses, VARCHAR2 values, the DUAL table, and the meaning of NULL. The same character functions used in the SELECT list can also filter rows, change stored values, and control sort order.2 min readSELECT statements, WHERE clauses, VARCHAR2, string literals, the DUAL table, and the meaning of NULL. This chapter focuses on choosing a character function when SUBSTR, INSTR, and REPLACE are not enough.3 min readSELECT statements, VARCHAR2, string literals, DUAL, and the difference between NULL and a non-NULL value. This chapter focuses on a less visible issue: Oracle can count a string in bytes or in characters.3 min read