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

#oracle

28 posts

28 total · page 1 / 3

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 →

Oracle - Features and Utilities

Useful little things and queries that may be useful with their description. 1. Get a list of all fields of the table that interests us. select column_name from user_tab_columns where upper(table_name) = upper('table_name') 2. Change the default date format in the session. ...

50 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 →