当前位置:首页
开发技术指南» 文章正文
    引言:

 ·操作系统如何安装    »显示摘要«
    摘要: 1、手持机设备的操作系统怎么安装? 2、操作系统能否升级? 3、手持机操作系统和pc上的操作系统是不一样的,pc上一般的操作系统都可以安装 手持机上wince的各个版本对硬件的要求是什么? ......
    摘要: 我在form1(unit1)中有一个按钮onclick事件: procedure tform1.button1click(sender: tobject); var newthread:testthread; begin newthread:=testthread.create(false); end; 新建了一个线程testthread文件(unit2): procedure testt......


新手问题:创建新过程的问题

执行  
  Select   *   From   Student.dbo.Reg  
  后,结果为  
  STUDENTID       NAME                                   AGE                   DEPARTMENT_ID                
    -----------   --------------------   -----------   -------------  
  1001                 ANDY1                                 22                     2                        
  1002                 Andy2                                 21                     3                          
  1003                 ANDY3                                 25                     1                
  1004                 ANDY4                                 18                     1                  
  1005                 Andy5                                 23                     2                
   
   
   
  创建一个新过程  
  Create   Procedure   Query   @Age   Int  
  As  
  Select   *   From   Student.dbo.Reg   Where   Age   >   @Age  
  执行后出现错误信息:  
  “无法在   sysdepends   中添加当前存储过程所对应的行,因为缺少该存储过程所依赖的对象   Query。仍将创建该存储过程。”  
   
  哪儿错了呢?  
 

NO.1   作者: zjcxc

--不会有这个问题啊  
   
  --下面是我的电脑上的测试结果  
  Create   Procedure   Query   @Age   Int  
  As  
  Select   *   From   Student.dbo.Reg   Where   Age   >   @Age  
  go  
   
  --测试完成后删除  
  drop   proc   query  
   
  --测试结果:命令已成功完成。  
   
 

NO.2   作者: gmlxf

仍将创建该存储过程  
  -----  
  没有关系,正常现象。存储过程还是被创建。

NO.3   作者: sdhdy

应该不是你的存储过程的问题!

NO.4   作者: Demonzsw

代码没有问题,你不用理它

NO.5   作者: prcgolf

我也经常有这种情况,  
  不过一样使用!!

NO.6   作者: zb1119

怎么执行这个过程啊。我不太会执行。  
   
  create   table   t(id   int)  
   
  insert   into   t   values(1);  
  insert   into   t   values(2);  
  insert   into   t   values(3);  
  insert   into   t   values(7);  
  insert   into   t   values(9);  
   
  create   procedure   aaa   @id   int    
   
  as    
  select   *   from   aaa   where   id   >@id  
  go  
   
  --建好了存储过程。  
  --执行  
  exec   aaa(5)  
   
  服务器:   消息   170,级别   15,状态   1,行   1  
  第   1   行:   5   附近有语法错误。  
   
 

NO.7   作者: prcgolf

--执行  
  exec   aaa   5  
   
 


    摘要: 请教各位dx,我下载安装realone player 为什么经常发生安装过不能运行的现象?(各种系统都曾发现),但大部分时候都很正常? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE