Skip to content

Commit 662f7ad

Browse files
authored
Intro feature #29 (#48)
Signed-off-by: Gerald Venzl <gerald.venzl@oracle.com>
1 parent d869b6b commit 662f7ad

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

features/seamless-concat.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
= Seamless concatenation via Varargs
2+
:database-version: 23.2
3+
:database-category: sql
4+
5+
[[feature_summary]]
6+
7+
You can now concatenate an unlimited number of parameters via the `CONCAT()` function.
8+
9+
[source,sql]
10+
[subs="verbatim"]
11+
----
12+
SELECT CONCAT('Hello World! It currently is ', TO_CHAR(sysdate,'YYYY-MM-DD HH24:MI:SS'), ' here in Vienna.') AS my_string;
13+
----
14+
15+
.Result
16+
[source,sql]
17+
[subs="verbatim"]
18+
----
19+
SQL> SELECT CONCAT('Hello World! It currently is ', TO_CHAR(sysdate,'YYYY-MM-DD HH24:MI:SS'), ' here in Vienna.') AS my_string;
20+
21+
MY_STRING
22+
___________________________________________________________________
23+
Hello World! It currently is 2024-06-13 16:50:50 here in Vienna.
24+
----
25+
26+
== Benefits
27+
28+
Not having to nest multiple concatenations in multiple `CONCAT()` calls aids the readability and maintainability of code.
29+
30+
== Further information
31+
32+
* Availability: All Offerings
33+
* link:https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/CONCAT.html[CONCAT Documentation]

0 commit comments

Comments
 (0)