SQL 执行delete时 对象名不存在
来源:百度知道 编辑:UC知道 时间:2024/06/15 09:34:38
delete from outlay_kind where id='90' 表outlay_kind确实存在
请问是什么问题?
数据库也是对的 我执行select 时就不会出错
请问是什么问题?
数据库也是对的 我执行select 时就不会出错
尝试用‘搜素对象’,查找outlay_kind,看是在那个数据库中,如果没有查到,就是说明的表名称有问题。
use 数据库名
go
delete from outlay_kind where id=90
确定下你是在要执行的数据库下执行这条语句的。使用
use 表所在的数据库
go
解决。
delete from outlay_kind where id=90
id后面如果是字符串就要‘’,是整型的话,直接写成90就好了。
outlay_kind 肯定写错了