How do you get this to work?

I'm creating a view of a table, but I'm trying to do something like
this:


create table t (
  id integer not null,
  amount numeric(7,2)
);

create view v as 
  select id as v_id,
    'paid amount: ' || amount as v_comment
  from t
;

You get this:


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply via email to