~/tags/programmirovanie $
#программирование
15 posts
15 total
· page 2 / 2
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. ...
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.
A function for calculating the check digit of the EAN13 barcode based on the first 12 digits. Input: a string (12-digit number). Output: the check digit. function GetControlNumber(p_code varchar2) return number is v…
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: