Re: Transaction problem

From: Cesar Alvarez <c(dot)alvarezx66(at)gmail(dot)com>
To: x asasaxax <xanaruto(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transaction problem
Date: 2007-12-03 19:39:55
Message-ID: 47545B8B.80808@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What are you programing with?.
are you using npgsql?

Regards Cesar Alvarez.
> Hi everyone,
>
> I would like to know how can i do a simple transaction for this
> situation:
>
> I have n products in certain row of a table. When the user buys a
> product, the quantity of this product will be decreased. The user can
> only buy a product that has a quantity n > 0. This means that when the
> user send the product confirmation to the system, the bd will decrease
> the product quantity with a transaction if the number of product in
> stock is greater than zero.
>
>
> Did anyone knows how can i do that with postgre?
>
> Thanks a lot.

Attachment Content-Type Size
c_alvarezx66.vcf text/x-vcard 120 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marko Kreen 2007-12-03 20:01:40 Re: pgcrypto functions fail for asymmetric encryption/decryption
Previous Message Merlin Moncure 2007-12-03 19:37:59 Re: PL/pgSQL and SETOF