Секция AS с выражениями и константами
Листинг 4.26. Секция AS с выражениями и константами
booktown=# SELECT 2 + 2 AS "2 plus 2",
booktown-# pi() AS "the pi fnction",
booktown-# 'PostgreSQL is more than a calculator!' AS comments;
2 plus 2 | the pi function | comments
4 | 3.14159265358979 | PostgreSQL is more than a calculator!
(1 row)