Re: [GENERAL] Totally new, two main problems.

2011-03-29 Thread Adrian Klaver
On Tuesday, March 29, 2011 2:20:33 pm wepwep wrote: > Im learning pg sql and psql in general. Im using console psql in windows. > For now, i installed it correctly and execute it, ok. > > My first problem is that i dont know how to execute a pgsql script when im > in the psql program. > CREATE FUN

[GENERAL] Totally new, two main problems.

2011-03-29 Thread wepwep
Im learning pg sql and psql in general. Im using console psql in windows. For now, i installed it correctly and execute it, ok. My first problem is that i dont know how to execute a pgsql script when im in the psql program. CREATE FUNCTION sales_tax(subtotal real) RETURNS real AS $$ BEGIN R