Warning: is_dir(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/web/virtuals/98151/virtual) in /data/web/virtuals/98151/virtual/www/subdom/postgresql/wp-content/plugins/wp-simple-firewall/src/lib/vendor/fernleafsystems/wordpress-services/src/Core/Fs.php on line 465

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/98151/virtual/www/subdom/postgresql/wp-content/plugins/wp-simple-firewall/src/lib/vendor/fernleafsystems/wordpress-services/src/Core/Fs.php:465) in /data/web/virtuals/98151/virtual/www/subdom/postgresql/wp-content/plugins/disable-xml-rpc-pingback/disable-xml-rpc-pingback.php on line 51
FOR cycle Archives - PostgreSQL Candies

Select * from VALUES / Using VALUES in SELECT

Very useful when you need to use list of your values in FOR cycle etc. One column in row: select * from (values('myValue01'),('myValue02'),('myValue03')) as t(column1)   More columns in row: select * from (values('myValue01', 1),('myValue02', 2),('myValue03', 3))...