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

    摘要: 我已经编好了树内拖放的程序!!!!可是我的树要动态加载数据库里的数据!!!就是说当节点移动后,数据库里内容也要改变!!!!!!我得源程序如下: 选中被拖动的节点 private sub trvdrag_itemdrag(byval sender as object, byval e as system.windows.forms.itemdrageventargs) handles trv......
    摘要: 小弟现在想做个短信发送平台,移动公司同意提供一个通道了,说要自己编程和这个通道交接,才能发送短信!小弟没有做过这方面的东西,希望大家帮帮忙,怎么编程的? ......


时间格式按日期显示

我有一张表字段是datetime格式  
  有这样一些记录  
  2005-7-27   1:28:23    
  2005-7-27   1:28:20    
  2005-7-27   1:00:31    
  2005-7-27   1:00:30    
  2005-7-27   1:00:27    
  2005-7-26   7:57:39    
  2005-7-26   7:57:35    
  2005-7-26   7:55:09    
  2005-7-26   7:55:08    
  2005-7-26   6:52:37    
  2005-7-22   4:56:38    
  2005-7-22   3:56:51    
  2005-7-22   3:56:44    
  2005-7-22   3:42:55    
  2005-7-22   3:42:13    
  2005-7-22   3:41:02    
  2005-7-22   3:41:02    
  我现在只想结果是  
  2005-7-27  
  2005-7-26  
  2005-7-22  
  该怎么写啊,谢谢了~

NO.1   作者: geniusqing

create   table   结果(时间     datetime,事件   varchar(20))  
  insert   into   结果  
                      select   2005-7-27   1:28:20   ,     aaaaaaaaa  
  union   all   select   2005-7-27   1:00:31   ,     fffffffff  
  union   all   select   2005-7-26   7:57:35,       78fg789g78g  
  union   all   select   2005-7-26   7:55:09   ,     dddddddddd  
  union   all   select   2005-7-22   3:42:55   ,     eeeeeeeee  
   
  select     distinct   convert(char(10),时间,120)   from   结果


    摘要: 表a id,typeid,typename 1 1 aaa 2 2 bbb 3 3 ccc 表b id,typeid,title 1 1 adfasdf 2 1 588454 3 1 789asdf 4 3 iujdd 5 2 7894212 6 2 1345f 7 3 34556 8 3 741 9 2 aaaaaa 想得到一个视图,数据为表b中记录包含表b中所有类型的前2条记录,如下所......
» 本期热门文章:

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