日期:2014-05-16  浏览次数:20551 次

sql在关键字 'where' 附近有语法错误。
insert   into   resource(filename,filesize)   values( 'upfile ',555987)   where   id=1018

[Microsoft][SQLServer   2000   Driver   for   JDBC][SQLServer]在关键字   'where '   附近有语法错误。

这里的id是从另外一个表(filetype)传过来的,filetype和resource建立了id关联,resource是副表(uuid(主建),filename(varchar),filesize(varchar)),现在想茬值,出现了这错误?怎么回事??

------解决方案--------------------
INSERT的时候where有什么用?
------解决方案--------------------
update的时候 where 才有作用的啊 没听说有这么写的