We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a1e9d commit 0fbb172Copy full SHA for 0fbb172
doc/src/sgml/plpgsql.sgml
@@ -484,8 +484,8 @@ $$ LANGUAGE plpgsql;
484
CREATE FUNCTION extended_sales(p_itemno int)
485
RETURNS TABLE(quantity int, total numeric) AS $$
486
BEGIN
487
- RETURN QUERY SELECT quantity, quantity * price FROM sales
488
- WHERE itemno = p_itemno;
+ RETURN QUERY SELECT s.quantity, s.quantity * s.price FROM sales AS s
+ WHERE s.itemno = p_itemno;
489
END;
490
$$ LANGUAGE plpgsql;
491
</programlisting>
0 commit comments