RE: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Downey, Shawn
-users@sqlite.org Subject: Re: [sqlite] proper SQL DELETE syntax On 7/14/05, Brass Tilde <[EMAIL PROTECTED]> wrote: >>> 'Twere me, I'd do it like this: >>> >>> delete timeline >>> from del_timelines >>> wheretimeli

Re: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Austin Ziegler
On 7/14/05, Brass Tilde <[EMAIL PROTECTED]> wrote: >>> 'Twere me, I'd do it like this: >>> >>> delete timeline >>> from del_timelines >>> wheretimeline.name = del_timelines.name >>> and timeline.lastchange <= del_timelines.last_change >> I guess you mean... from timeline,del_tim

Re: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Brass Tilde
> >'Twere me, I'd do it like this: > > > >delete timeline > >from del_timelines > >wheretimeline.name = del_timelines.name > >and timeline.lastchange <= del_timelines.last_change > I guess you mean... from timeline,del_timeline ... No, I meant what I wrote, exc

Re: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Austin Ziegler
On 7/14/05, Downey, Shawn <[EMAIL PROTECTED]> wrote: >>> DELETE from timeline where timeline.name=del_timelines.name and >>> timeline.last_change<=del_timelines.last_change; ... >> delete timeline >> from del_timelines >> wheretimeline.name = del_timelines.name >> and timeline.lastch

RE: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Downey, Shawn
>> DELETE from timeline where timeline.name=del_timelines.name and >> timeline.last_change<=del_timelines.last_change; > >'Twere me, I'd do it like this: > >delete timeline >from del_timelines >wheretimeline.name = del_timelines.name >and timeline.lastchange <= del_ti

Re: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Brass Tilde
> DELETE from timeline where timeline.name=del_timelines.name and > timeline.last_change<=del_timelines.last_change; 'Twere me, I'd do it like this: delete timeline from del_timelines wheretimeline.name = del_timelines.name and timeline.lastchange <= del_timelines.l

Re: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Clark Christensen
--- "Downey, Shawn" <[EMAIL PROTECTED]> wrote: > What is the correct SQL syntax for deleting records from > a single table > based on a where clause with multiple table references? > > > > For example: > > > > Sqlite> DELETE from timeline where > timeline.name=del_timelines.name and > ti

RE: [sqlite] proper SQL DELETE syntax

2005-07-14 Thread Downey, Shawn
:57 AM To: sqlite-users@sqlite.org Subject: [sqlite] proper SQL DELETE syntax What is the correct SQL syntax for deleting records from a single table based on a where clause with multiple table references? For example: Sqlite> DELETE from timeline where timeline.name=del_timelines.na

[sqlite] proper SQL DELETE syntax

2005-07-14 Thread Downey, Shawn
What is the correct SQL syntax for deleting records from a single table based on a where clause with multiple table references? For example: Sqlite> DELETE from timeline where timeline.name=del_timelines.name and timeline.last_change<=del_timelines.last_change; SQL error: no such column