skip to Main Content

Display a day of week in text in postgresql

This query displays count Actions grouped by day of the week. select count(*) c, date_part('dow', "updatedAt" at time zone 'Europe/Paris') dow from "Action" date_part('dow', "updatedAt" at time zone 'Europe/Paris') Days are displayed as number. Is there a way to display…

VIEW QUESTION

How to return data in login function in PL/pgSQL? I want to return table where email and password matches. Email is unique – Postgresql

The function doesn't throw any error nor does it show any return value. CREATE OR REPLACE FUNCTION login(iemail VARCHAR,ipassword VARCHAR) RETURNS TABLE(id INTEGER, name VARCHAR, lastName VARCHAR, age INTEGER, mobile VARCHAR,email VARCHAR) LANGUAGE 'plpgsql' AS $$ #variable_conflict use_variable BEGIN RETURN…

VIEW QUESTION
Back To Top
Search