From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | "Verbus M(dot) Counts" <verbus(at)sonicisp(dot)net> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Data format problem |
Date: | 2001-12-11 02:04:09 |
Message-ID: | 20011210180138.F72440-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> echo "insert into titles"
> psql testdb <<EOF
> insert into titles
> values ('BU1111',
> 'Cooking with Computers: Surreptitious Balance Sheets',
> 'business',
> '1389',
> $11.95,
> $5000.00,
> 3876,
> 'Helpful hints on how to use your electronic resources to the best
> advantage.', '06/09/88', 1);
>
> insert into titles
> values ('MC2222',
> 'Silicon Valley Gastronomic Treats',
> 'mod_cook',
> '0877',
> $19.99,
> $0.00,
> 2032,
> 'Favorite recipes for quick, easy, and elegant meals, tried and tested
> by people who never have time to eat, let alone cook.',
> '06/09/89', 1);
> EOF
> When I change the $0.00 to $1.00 all works well????????????
I think you don't want those $ in front of the amounts.
Try doing a
cat <<EOF
<data from above>
EOF
and seeing what it gives you. My guess is that it's replace
the $<n> with something. In the case of $0 it's probably the program
name.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-12-11 02:06:40 | Re: Data format problem |
Previous Message | Rich Ryan | 2001-12-11 01:49:39 | Re: Vacuum errors and warnings |