O'Reilly logo

OCA Oracle Database 11g: SQL Fundamentals I: A Real-World Certification Guide by Steve Ries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Concatenating values in SELECT statements

While SQL allows us to manipulate numeric values with mathematical operators, we can also do some degree of character string manipulation with our statements. Earlier in the chapter, we used the DUAL table to display string literals that were enclosed in single quotes. We can use concatenation to append one or more string literals with values from a table. There are actually two ways we can concatenate values in Oracle, but, in this section, we examine the concatenation operator "double-pipe" or (||). The pipe symbol is invoked on most keyboards using Shift + \ (backslash). We use two of these pipe symbols or "double pipe" to concatenate values in SQL. A basic example of concatenation using the dual table ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required