Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

PSQL qith variables

WITH vars AS (SELECT 42 AS answer, 3.14 AS appr_pi)
SELECT t.*, vars.answer, t.radius*vars.appr_pi
FROM table AS t, vars;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #PSQL #qith #variables
ADD COMMENT
Topic
Name
5+7 =