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. ...
В Oracle присутствует возможность объединять выборки. Для объединения используются операторы: UNION (с вариацией UNION ALL ), INTERSECT и MINUS . Рассмотрим работу всех этих операторов. 1. UNION и UNION ALL UNION — объединяет наборы данных,…
Main ways to process string values in Oracle. In this publication, I will list the main string processing functions that I encountered in my work, and will be useful to all who work with Oracle. CONCAT - Joins two strings SQL> sele…
A small guide to catching errors in Oracle PLSQL. Description of how to use Oracle (PLSQL) functions SQLERRM and SQLCODE to catch errors EXCEPTION, with syntax and example description.
Let's start with the RANK() function. With explanations for what it is and in what cases it may be useful. The RANK() function is a very useful function that allows us to number a set by some grouping value within the entire selected set. It is easiest to show this with an example. To do this, let's create a small table:
It's no secret that when using DISTINCT with SELECT, we get a set of unique records, but it turns out in Oracle, there is another operator for this purpose UNIQUE - and, as experiments have shown, it seems to provide better performance.