Hello,
I have an update query which is being created dynamically.
The update query needs to select a value from a temporary table and use that value to make the update.
If the value was in a variable @var_val the query is
Update <Table_Name> Set Column_Name = @var_val where Column_Name > @var_val
However, @var_val is contained in a table.
I am trying to select the table. The actual statement is:
***********************************************************
Update ##Out_Test_word28July2007205415483137 Set e = Select var_val from ##STVR_FLOAT_Test_word28July2007205415483137 where e > Select var_val from ##STVR_FLOAT_Test_word28July2007205415483137
***********************************************************
This is giving me a the problem. Can someone help me wit the syntax please.
Thanks.
I have an update query which is being created dynamically.
The update query needs to select a value from a temporary table and use that value to make the update.
If the value was in a variable @var_val the query is
Update <Table_Name> Set Column_Name = @var_val where Column_Name > @var_val
However, @var_val is contained in a table.
I am trying to select the table. The actual statement is:
***********************************************************
Update ##Out_Test_word28July2007205415483137 Set e = Select var_val from ##STVR_FLOAT_Test_word28July2007205415483137 where e > Select var_val from ##STVR_FLOAT_Test_word28July2007205415483137
***********************************************************
This is giving me a the problem. Can someone help me wit the syntax please.
Thanks.