From: Astrid Hexsel <ahexse01@postoffice.csu.edu.au>
To: pgsql-sql@postgresql.org
Subject: delete rows
Date: Thu, 30 Nov 2000 12:01:59 +1100
Message-ID: <3a25a707.6e2e.0@postoffice.csu.edu.au> (raw)
Hello All,
After trying for two weeks to delete more than one row at the time from a form
- checkbox input, I was told that the only way different rows would be inputed
or changed with the information from the form would be with the INSERT command.
This way the best alternative I could think of, would be
to still have my table cart:
For eaxmple:
session_id|range_id|colour_id|
------------------------------
122 | 4004-4 | 4002
122 | 4004-4 | 4003
122 | 4004-4 | 4004
which contains all the items added to the cart.
Then when a deletion is required, the information from the form would be inserted
into "cartchange table":
For example:
session_id| colour_id|condition|
---------------------------------
122 | 4001 | yes
122 | 4002 | yes
Now what I am trying to do is to delete the rows
from cart that appear in the cartchange table.
I have tried to join the tables , but I could not find the right query to delete
similar rows.
Am I missing something here ?
Any help will be extremely appreciated. :)
Astrid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: ahexse01@postoffice.csu.edu.au
Subject: Re: delete rows
In-Reply-To: <3a25a707.6e2e.0@postoffice.csu.edu.au>
References: <3a25a707.6e2e.0@postoffice.csu.edu.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox