Hi I am new to postgres, while inserting the data into a money type field I am getting the error as.. Here my sample table is as
CREATE TABLE x_table
(
t_name character varying(40) NOT NULL,
currency money
)
INSERT INTO x_table(t_name, currency)
VALUES ('TEST', 1000);
and getting the error message as
ERROR: column "currency" is of type money but expression is of type integer
SQL state: 42804
.
So can any one say how to resolve this.. Thanks in advance