⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/tags/plsql $

#PLSQL

12 posts

12 total · page 1 / 2

Generating MD5 HASH on Oracle PL/SQL

Simple example of generating MD5 on Oracle PL/SQL. declare cln_md5raw raw(2000); out_raw raw(16); begin cln_md5raw := utl_raw.cast_to_raw('Our text for hashing'); dbms_obfuscation_toolkit.md5(input=>cln_md5raw,checksum=>out_raw); -- Output

315 views 0 comments 0 likes ./Read →

Объединение выборок UNION, INTERSECT, MINUS в Oracle (PL/SQL)

В Oracle присутствует возможность объединять выборки. Для объединения используются операторы: UNION (с вариацией UNION ALL ), INTERSECT и MINUS . Рассмотрим работу всех этих операторов. 1. UNION и UNION ALL UNION — объединяет наборы данных,…

756 views 0 comments 0 likes ./Read →

Inserting Records into a Table with Simultaneous Check and Update in Case of Presence in the Receiving Table MERGE in Oracle (MERGE INTO TABLE)

MERGE — Function intended for merging the result of some query into a receiving table, it is not necessary for the field composition to match. Applied when it is necessary to supplement some table with new data, updating existing data in the table simultaneously. Implementation:

157 views 0 comments 0 likes ./Read →

XML in Oracle PL/SQL (Part 2 - Retrieving data as XML)

In the previous publication, some methods of manipulating XML in Oracle were considered, now let's consider how to retrieve data directly in XML. This is, in my opinion, the most interesting part. In practice, it turned out that for Oracle in most cases it does not matter whether to return a set of records or a formed ready XML of this set of records - in terms of execution time these actions are subjectively almost equivalent. But if you have a need to form some XML structure in the application based on data received from the Oracle database, it will almost certainly be a resource-intensive event, much easier to transfer this functionality to the database, although at first glance it seems that this is not what the database engine should do.

758 views 0 comments 0 likes ./Read →

Oracle TO_CHAR (PL/SQL) Function

The TO_CHAR function converts a date or number to a string. Syntax: TO_CHAR(original_value, Format, NLS_LANGUAGE); --The original value can be either a date (DATE) or a number (NUMBER). --The last parameter NLS_LANGUAGE (such as AMERICAN_AMERICA or RUSSIAN_RUSSIA) is used to specify the language for the date and time format. For example, if you want to display the date in Russian, you would use NLS_LANGUAGE = RUSSIAN_RUSSIA.

246 views 0 comments 0 likes ./Read →