website logo
⌘K
šŸ Homepage
šŸ‘‹Introduction
Key Concepts & Architecture
šŸš€Run Oxla in 2 minutes
šŸƒā€ā™‚ļøRun Oxla on S3
šŸ›«Multi-node Deployment
šŸ‘Øā€šŸ’»SQL Reference
SQL Queries
SQL Clauses
SQL Data Types
SQL Functions
Schema
Comment Support
🚨Error Handling
šŸ†šDifferences Between Oxla vs. PostgreSQL
šŸ“ˆPublic Metrics
Docs powered by
Archbee
SQL Reference
...
SQL Functions
Other Functions

CURRENT_SCHEMA

6min

Overview

The CURRENT_SCHEMA() function returns the name of the first existing schema.

It will return NULL if none of the schemas from search_path exist.

Syntax

CURRENT_SCHEMA() function has the following syntax:

Syntax
|
SELECT CURRENT_SCHEMA();


Another method is to omit the parenthesis from the above syntax.

Another option
|
SELECT CURRENT_SCHEMA;


It does not require any argument to operate.

Example

The following example shows how to get the current schema name using CURRENT_SCHEMA() function.

Current schema
|
SELECT CURRENT_SCHEMA();


The final result will display the schema that you currently use:

Output
|
+------------+
| f          |
+------------+
| public     |
+------------+




Updated 31 Aug 2023
Did this page help you?
PREVIOUS
Other Functions
NEXT
CURRENT_DATABASE
Docs powered by
Archbee
TABLE OF CONTENTS
Overview
Syntax
Example
Docs powered by
Archbee

Dedicated to data analytics that provides 10x faster execution of analytical queries than current state of the art solutions. We are launching SOON! Join the waiting list for more info.




©2023 Oxla