Urgent help: User variables - Mailing list pgsql-general

From Rosa.Carro@ii.uam.es
Subject Urgent help: User variables
Date
Msg-id 384D0350.4EBE1283@ii.uam.es
Whole thread Raw
List pgsql-general
Hello everybody,

I am using PostgresSQL in Linux, and I want to declare a user variable so that I can use its value
for new queries after giving it a value.

While using WinNT and SQL Server I was writting (for example ):

declare @@task_id  int
selct @@task_id = id from task were name ='Mytask'
update task set final='N' where id = @@task_id

But when I write these sentences in Postgres for Linux (I am using RedHat 6.0), I am told:

"ERROR: parser: parse error at or near @@"

How can I do the same?

Thank you very much,

Rosa


--------------------------------------
Rosa Maria Carro Salas
E.T.S.Informatica
Universidad Autonoma de Madrid
Cantoblanco 28049, Madrid (Spain)
phone: +34 1 348 2291


pgsql-general by date:

Previous
From: Rosa.Carro@ii.uam.es
Date:
Subject: (no subject)
Next
From: Fabian.Frederick@prov-liege.be
Date:
Subject: RE: [GENERAL] Postgresql in win9x