有关SUM,SELECT语句的使用
我在表单中使用sum和select
尽管我参照了msdn,可还是不成功
有什么是需要注意的吗?
请各位高手指教:)
推荐阅读
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] ...]]
不知你是怎么写的???我们看看也许更好找到原因。
-------------------------
我流落在凄凉的世界里-孤苦伶仃
我过着动荡无助的生活-四处漂泊
* 将form改from
sql查询中的聚合函数有sum ,count,等等,也还可以是自定义函数,一般要配合group by
使用,要不聚什么?


讨论区