使用此程序时的问题 [英] problem when Use This Procedure

查看:110
本文介绍了使用此程序时的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

insertPrices_TBL 200,1



错误是:

消息208,级别16,状态1,过程insertPrices_TBL,第6行

无效的对象名称'CurrencyTBL'。





如何使用此proc来

insertPrices_TBL 200 ,1
(
The Error is:
Msg 208, Level 16, State 1, Procedure insertPrices_TBL, Line 6
Invalid object name 'CurrencyTBL'.
)

how Can Use This proc to

alter proc insertPrices_TBL
@Prices float,
@Currency_ID int
as
begin
insert into Prices_TBL values (@Prices * (select Currency_Value from CurrencyTBL where Currency_ID=@Currency_ID))
end

推荐答案

您输错了您的表的名称,或者您使用的是错误的数据库(错误的数据库版本 - 最近是否已更改?) - 错误消息非常具体!
You have either mistyped the name of your table, or you are using the wrong database (wrong version of the database - has it changed recently?) - the error message is pretty specific!


这篇关于使用此程序时的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆