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

 

    摘要: 贵宝地人气旺,特来请教下! ......
 ·做it 还不如做鸭…………    »显示摘要«
    摘要: 人都说咱搞it的赚钱,可是我咋还这么穷呢?…… 彷徨…… 我家楼上那做鸭的可气阔,每次想想就气, 真天泡在女人堆里,还有钱赚 我真天泡在计算机里,被女朋友吹了…… ......


如何将#临时表的内容,添加到@内存表中.

两个相同的表结构,临时表和内存表结构相同,  
   
  临时表里有100条记录, 我要过滤出一些内容。  
   
  结构如下.  
  #temp(有   100条记录)  
  dh(char(10)),   cbh   (char(6)),money   (float)  
   
  @temp的结构的上面完全一样.  
   
  把#temp中cbh   is   not   null的记录添加到@temp中。  
   
  因为@temp不支持 insert   into   @temp.  
   
  不用游标.  
   
   
 

NO.1   作者: j9988

declare   @temp   table   (......)  
  insert   @temp   select   *   from   #temp   where   cbh   is   not   null

NO.2   作者: DJMPH

create   table   #aaa   (a   char(1))  
  insert   #aaa   values   (1)  
  declare   @aaa   table   (a   char(1))  
  insert   into   @aaa   select   *   from   #aaa  
  drop   table   #aaa

NO.3   作者: happydreamer

declare   @temp   table   (dh   char(18)   primary   key,[char]   char(30),[money]   float)  
   
  insert   into   @temp   select   *   from   #temp  
  insert   into   @temp   select   *   from   #temp--第二个会报错


 ·继承中调用父类的问题    »显示摘要«
    摘要: 我想在一个子类中调用继承的父类函数和事件,请问怎么调用呢?急! 在子类和父类同一个事件中都写了代码,他是怎么进行处理的呢?谢谢了! ......
» 本期热门文章:

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