I guess I’m brain-dead, since I write SQL every day…
UPDATE myTable a SET ID=(SELECT id FROM theirTable b WHERE a.criteria=b.criteria)
I guess I’m brain-dead, since I write SQL every day…
UPDATE myTable a SET ID=(SELECT id FROM theirTable b WHERE a.criteria=b.criteria)
UPDATE myTable AS a ...
Nope… gives
THIS fixed it, but not sure why I can’t use an Alias
UPDATE myTable SET ID=(SELECT id FROM theirTable b WHERE myTable.criteria=b.criteria)
sqlite doesnt support table aliases on update statements