Selecting Constants
If you include a constant expression in the projection list, the
same value is returned for each row that the query returns (except
when the constant expression is NEXTVAL). For a complete description
of the syntax and use of constant expressions, see Constant Expressions. Examples that follow
show constant expressions within a select list:
SELECT 'The first name is', fname FROM customer; SELECT TODAY FROM cust_calls; SELECT SITENAME FROM systables WHERE tabid = ;1 SELECT lead_time - 2 UNITS DAY FROM manufact; SELECT customer_num + LENGTH('string') from customer;