![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I want to do an update to a field that I left blank when I left it out of a mass insert. However, I'm having trouble thinking of how to phrase it. Basically I want to refer to a value outside the parentheses of a subselect. Something like this: UPDATE table SET text_field_1 = ( SELECT text_field_2 FROM other_table WHERE id = **current row in update statement, outside parens**.id ) How do I do it? |
#3
| |||
| |||
|
|
I want to do an update to a field that I left blank when I left it out of a mass insert. However, I'm having trouble thinking of how to phrase it. Basically I want to refer to a value outside the parentheses of a subselect. Something like this: UPDATE table SET text_field_1 = ( SELECT text_field_2 FROM other_table WHERE id = **current row in update statement, outside parens**.id ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |