On Wed, Apr 7, 2010 at 4:20 PM, Simon Slavin <slav...@bigfraud.org> wrote:
>
> On 7 Apr 2010, at 10:06pm, P Kishor wrote:
>
>> On Wed, Apr 7, 2010 at 3:46 PM, Pavel Ivanov <paiva...@gmail.com> wrote:
>>> Probably the only way to do that is
>>>
>>> REPLACE INTO t (id, foo, bar, ...)
>>> SELECT 649, foo, bar, ...
>>> WHERE id = 651
>>>
>>
>> I get a "Error: constraint failed". I have no constraint other than
>> INTEGER PRIMARY KEY on id.
>
> I hope that you don't already have a record with id = 651.
>


Of course I have a row with id = 651. That is where I am copying the
data *from* into row with id = 649.


-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to