What is the equivalent of oracle varray in postgres. Code : gt_name is a cursor name. ...
What is the equivalent of oracle varray in postgres. Code : gt_name is a cursor name. ...
I'm trying to create a function PostgreSQL to check if a user exist in a table users by creating a function who return a JSON variable. But when I ...
What is the use of KEY keyword in oracle .what is the equivalent for this keyword in postgresql?this is a sample code from a function mentioned in pac ...
I have function which take varying character from frontend and return certain computed values, but the issue iam facing is when input value for that p ...
I need to monitor the ongoing flow of data using the latest created date for a set of tables. Basically, I need to batch run on a set of tables I r ...
The function doesn't throw any error nor does it show any return value. Below query gives me a return value. So, I know my query statement is right ...
I have a simple Postgres function where I want to take table_name as a parameter and pass it into an argument and delete the data from table by condit ...
I have two strings as below: I want to merge these two strings into one string and to remove duplicates: As a result, the variable (_var_3) shou ...
I am a new person for PL/pgSQL. Earlier I have been working on MS T-SQL. So I am not sure – is it possible to use DECLARE within DO $$...$$;? I have w ...
Here's the problem. create table customer ( customer_id int generated by default as identity (start with 100) primary key ); create table cart ( ...
I am aware that this question has been asked many times however, I'm unable to figure out what's wrong in spite of following the SO answers. Would app ...
I am trying to start an plpgsql function to store in a variable several elements of an array of type character varying, I would like to know what is t ...
I want to count certain values in all tables of a schema that contain a column that can contain those values. Was hoping to use a LATERAL join to loo ...
On PostgreSQL, I need to see the table's columns in alphabetical order, so I'm using the query: I use it a lot every day, so I want to create a fun ...
Hi I have some variables in a plpgsql script. It's all case sensitive. I need to put those variables in a simple statement: I feel like I am bat ...
I have a problem. There is a function, that counts total budget of department, including departments lower down the hierarchy: The dept_no has bpch ...
I'm using pgAdmin, and I want to have a simple raise notice; referring to this, I entered RAISE NOTICE 'note'; and got this error: The only way I c ...
I work on a PostgreSQL database. I'd like to use a loop to create multiples views from a table column. Let's say I have this table mylist : I use ...
. Answers to this question are eligible for a +100 reputation bounty. t ...
I am trying to add this in an RPC function in Supabase but I'm not sure why it's only returning the first column. It returns this: How can I get ...