On 10/24/2013 3:23 PM, Igor Korot wrote:
Will this query work:

UPDATE a SET a.field1 = (SELECT b.field1 FROM b AS myfield), a.field2 =
myfield...

or I will have to repeat subquery for a.field2?

I'm pretty sure you will have to repeat the subquery. In your statement, myfield is an (unused) alias for table b, not for a value produced by the subquery (which I don't know of any way to name or reuse).
--
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to