您现在的位置是:首页 > 电脑技术查询 > web开发

sql在关键字 'where' 附近有语法异常

编辑:chaxungu时间:2022-10-02 23:19:07分类:web开发

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 才有作用的啊 没听说有这么写的