Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Error with updating one table column with reference of two tables

$
0
0

Hi,

I'm trying to update a column in a table with reference to another table. There are two tables,nt_masterinstrument and SQLSymbol. The description in nt_masterinstrument is empty and I try to update it from SQLSymbol as below:

update nt_masterinstrument
  set nt_masterinstrument.description = SQLSymbol.description
from nt_masterinstrument, SQLSymbol
where nt_masterinstrument.name = 'MF5.SI' AND nt_masterinstrument.name = SQLSymbol.name

It shows error : "There was an error parsing the query. [ Token line number = 3,Token line offset = 1,Token in error = from ]"

another error if I removed the from clause : "The column name is not valid. [ Node name (if any) = SQLSymbol,Column name = name ]"

I am using MS SQL Compact Query Analyzer.

Rgs,

Toygo


Viewing all articles
Browse latest Browse all 193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>