| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 459 人关注过本帖
标题:求助:SQL语句看错在哪里
只看楼主 加入收藏
littleskirt
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2006-8-1
收藏
 问题点数:0 回复次数:0 
求助:SQL语句看错在哪里

use masteradmit
go
declare @tempenglish int,@temppolitics int,@tempspecial int,@temptotal int
set @tempenglish='55'
set @temppolitics='60'
set @tempspecial='70'
set @temptotal='320'
go
create procedure total_message


as
if(result.english>=@tempenglish and
result.politics>@temppolitics and
result.special1>@tempspecial and
result.special2>@tempspecial and
result.special3>@tempspecial and
result.totalscore>@temptotal)
result.flag='录取'
else
result.flag='落选'
go

可是运行后总出现这样的提示:必须声明变量 '@tempenglish'
请各位指教. 谢谢先!

[此贴子已经被作者于2006-8-18 9:12:37编辑过]

搜索更多相关主题的帖子: SQL 语句 
2006-08-17 20:44
快速回复:求助:SQL语句看错在哪里
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020715 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved