https://github.com/egasimov/sql-scripts
Useful SQL Scripts
https://github.com/egasimov/sql-scripts
dynamic-sql oracle plsql sql
Last synced: 22 days ago
JSON representation
Useful SQL Scripts
- Host: GitHub
- URL: https://github.com/egasimov/sql-scripts
- Owner: egasimov
- Created: 2020-04-02T13:54:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-09T11:39:26.000Z (over 4 years ago)
- Last Synced: 2025-10-10T23:59:49.563Z (5 months ago)
- Topics: dynamic-sql, oracle, plsql, sql
- Language: PLSQL
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### [Dynamically Viewing Columns of table ](https://github.com/egasimov/sql-scripts/blob/master/viewing/dynamically-viewing-columns.sql)
- use of DBMS_SQL package
- Determining colums of table - which is passed as argument to function.
- full text of sql scripts will be known during runtime
- Input params: view or table name
- Output params: CLOB which contains the result of query
--------------------------------------------------------
### [Query the Paginated Data ](https://github.com/egasimov/sql-scripts/tree/master/pagination)
- use of DBMS_SQL package
- Pagination of data by the predifined colums
- Input params: table name, page size, page number, sort data(column_name, sort_type)
- Output param: REF Cursor which can be consumed by other functions or client apps
- Test scripts can also be found here(https://github.com/egasimov/sql-scripts/tree/master/pagination/test)
--------------------------------------------------------
**PL/SQL | Dynamic SQL ** [Further Information](https://docs.oracle.com/cd/E11882_01/appdev.112/e25519/dynamic.htm#LNPLS011)