Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Delete from...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 15953 of 17437
Post > Topic >>

Re: Delete from Join

by gwynethm@[EMAIL PROTECTED] (Gwyneth Morrison) Jul 3, 2008 at 08:26 AM

Scott Marlowe wrote:
> Take a look here, in the notes section:
>
> http://www.postgresql.org/docs/8.3/interactive/sql-delete.html
>
> on the using keyword.
>
>   
Thank you for your reply Scott,

I guess this is where the confusion started for me.

It says here in your reference  that the using clause is not standard but
that is fine as I am doing a subst. MS actually allows:

DELETE from table from table.....

I change the second from to a using and it works fine most of the time.

What I am actually trying to get past is:


    DELETE FROM data_table1
                using data_table2 INNER JOIN
                         data_table1  ON data_table1.fkey =
 data_table2.pkey;
 


Where the INNER JOIN keyword is used in the delete.

In the do***entation section you cited, they refer to the from clause
in the usinglist. The from clause link there refers to select which 
states
that a join keyword is valid in a from clause.

What I have found is it sometimes compiles but doesn't work.

I am just seeking verification  if it is supposed to work.

Gwyneth

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 5 Posts in Topic:
Re: Delete from Join
gwynethm@[EMAIL PROTECTED  2008-07-02 15:12:59 
Re: Delete from Join
gwynethm@[EMAIL PROTECTED  2008-07-03 08:26:52 
Re: Delete from Join
tgl@[EMAIL PROTECTED] (T  2008-07-03 11:29:46 
Re: Delete from Join
lennin.caro@[EMAIL PROTEC  2008-07-03 06:28:38 
Re: Delete from Join
gwynethm@[EMAIL PROTECTED  2008-07-04 10:00:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:51:29 CST 2008.