https://github.com/gpalleschi/get_field
The GET_FIELD is an oracle SQL function to extract, from a string composed by fields separated by a separator, a specific field in a specific position.
https://github.com/gpalleschi/get_field
extract separator sql
Last synced: 5 months ago
JSON representation
The GET_FIELD is an oracle SQL function to extract, from a string composed by fields separated by a separator, a specific field in a specific position.
- Host: GitHub
- URL: https://github.com/gpalleschi/get_field
- Owner: gpalleschi
- License: gpl-3.0
- Created: 2020-08-24T12:19:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T12:45:25.000Z (almost 6 years ago)
- Last Synced: 2025-06-02T11:54:12.654Z (about 1 year ago)
- Topics: extract, separator, sql
- Language: PLSQL
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GET_FIELD
----
## Description :
The GET_FIELD is an oracle sql function very efficent, created under GNU General Public License v3.0 to
extract from a string with fields separated by a one or more characters a specific field by its position,
if is not present function return null.
Function have three input arguments :
1. Input String
2. Separator String (It is possible specify more than a single character)
3. Field Number
Function returns null if it's impossible determinate field at position specified in Field Number
----
## Compatibility :
ORACLE 8 or upper
----
## Samples :
GET_FIELD( '1|2|3|4','|',2 )
result:
----------
2
GET_FIELD( 'ARA;BAR;COO;SAA',';',5 )
result:
-----------
null
----
## License :
This project is licensed under the GNU GENERAL PUBLIC LICENSE 3.0 License - see the [LICENSE](LICENSE) file for details