当前位置:首页 » 多媒体相关

有关SUM,SELECT语句的使用


我在表单中使用sum和select  
  尽管我参照了msdn,可还是不成功  
  有什么是需要注意的吗?  
  请各位高手指教:)

推荐阅读

  • 游民关注:暴雪新游戏倒计时 [详细内容]
  • 保护你的眼睛 海尔H30本本升级润清屏 [详细内容]
  • 教你增加西门子C75短信存储数量 [详细内容]
  • 电竞中国:WSVG大戏即将开演 [详细内容]
  • 狂降300元 采用PNX0102芯片魅族E3仅999 [详细内容]
  • 如何将西门子CX65打造成音乐手机 [详细内容]
  • 胡军代言搜狐网游《天龙八部》 [详细内容]
  • 网友回答:
    网友:fj_jiangqi

    sum   [eexpressionlist]  
          [scope]   [for   lexpression1]   [while   lexpression2]  
          [to   memvarnamelist   |   to   array   arrayname]  
          [nooptimize]  
       
      select   [all   |   distinct]   [top   nexpr   [percent]]  
          [alias.]   select_item   [as   column_name]  
          [,   [alias.]   select_item   [as   column_name]   ...]  
      from   [force]  
      [databasename!]table   [[as]   local_alias]  
          [[inner   |   left   [outer]   |   right   [outer]   |   full   [outer]   join  
                databasename!]table   [[as]   local_alias]  
                [on   joincondition   …]  
      [[into   destination]  
          |   [to   file   filename   [additive]   |   to   printer   [prompt]    
          |   to   screen]]  
      [preference   preferencename]  
      [noconsole]  
      [plain]  
      [nowait]  
      [where   joincondition   [and   joincondition   ...]  
          [and   |   or   filtercondition   [and   |   or   filtercondition   ...]]]  
      [group   by   groupcolumn   [,   groupcolumn   ...]]  
      [having   filtercondition]  
      [union   [all]   selectcommand]  
      [order   by   order_item   [asc   |   desc]   [,   order_item   [asc   |   desc]   ...]]  
       
      不知你是怎么写的???我们看看也许更好找到原因。  
      -------------------------  
      我流落在凄凉的世界里-孤苦伶仃  
      我过着动荡无助的生活-四处漂泊

    网友:jiaxingxing

    *   将form改from    
        sql查询中的聚合函数有sum   ,count,等等,也还可以是自定义函数,一般要配合group   by  
      使用,要不聚什么?

    .

    讨论区

    Login