Search
 
SCRIPT & CODE EXAMPLE
 

SQL

How to save PostgreSQL query

create or replace function count_app_users()
    returns table
            (
                total bigint
            )
    language plpgsql
as
$$
begin
    return query (
      select count(*) from app_user
    );
end;
$$;
Comment

select save as table postgres

CREATE TABLE <table name> AS (
SELECT STATEMENT
)
Comment

How to save PostgreSQL query

SELECT count(*) FROM app_user;
Comment

PREVIOUS NEXT
Code Example
::  
:: how to uncheck a checkbox in jquery 
::  
:: setinterval jquery 
Javascript ::  
::  
Javascript ::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
::  
Javascript ::  
Javascript ::  
::  
::  
::  
Javascript :: jquery clear file input 
::  
Javascript ::  
::  
::  
:: Consider using the "jsdom" test environment. 
::  
ADD CONTENT
Topic
Content
Source link
Name
9+4 =