Urgent help: User variables

From: Rosa(dot)Carro(at)ii(dot)uam(dot)es
To: pgsql-general(at)postgresql(dot)org
Subject: Urgent help: User variables
Date: 1999-12-07 12:53:36
Message-ID: 384D0350.4EBE1283@ii.uam.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Fabian.Frederick 1999-12-07 12:53:39 RE: [GENERAL] Postgresql in win9x
Previous Message Rosa.Carro 1999-12-07 12:51:32 (no subject)