Check out example codes for "temp table in postgresql". It will help you in understanding the concepts better.

Code Example 1

CREATE TEMPORARY TABLE temp_table_name(
   column_list
);

Code Example 2

CREATE TEMP TABLE temp_table(
   ...
);

Learn ReactJs, React Native from akashmittal.com