易截截图软件、单文件、免安装、纯绿色、仅160KB

【转】ACCESS中如何在SQL语句的WHERE条件中加日期条件

转自
http://topic.csdn.net/t/20050110/09/3711952.html
access中时间要用#,不是双引号  
  select   *   from   kc   where   rq   <   #2000-01-01#   and   rq>#2002-01-01#  
  不要用between,它的效率泰低  
使用# 而不是使用单引号


相关文档:

一次神奇的SQL 错误调试经历

上周接到一个奇怪的bug,一个曾经运行得很好的存储过程突然产生了错误的结果。
负责维护的兄弟们很负责任的对错误进行了跟踪,并把错误定位一个如下的语句:
SELECT *
into SomeTable
from A join B on A.id=B.id
         join C on A.id=C.id
他们发现从SomeTable做查询的 ......

SQL统计大全收藏版 个人使用

文章来源:IT工程技术网, 全文链接:http://www.systhinker.com/html/81/n-11481.html
1.计算每个人的总成绩并排名
select name,sum(score) as allscore from stuscore group by name order by allscore
2.计算每个人的总成绩并排名
select distinct t1.name,t1.stuid,t2.allscore from stuscore t1,( select st ......

db2 V8的有关SQL limits

The following tables describe certain SQL
limits. Adhering to the most restrictive case can help the programmer
design application programs that are easily portable.
Table 7. Identifier Length Limits
Description
Limit in Bytes
Longest authorization
name (can only be single-byte characters) ......

SQL命令大全 中英文对照

[code=SQL][/code]
--语 句 功 能 
--数据操作 
SELECT --从数据库表中检索数据行和列 
INSERT --向数据库表添加新数据行 
DELETE --从数据库表中删除数据行 
UPDATE --更新数据库表中的数据 
--数据定义 
CREATE TABLE --创建一个数据库表 
DROP TABLE --从数据 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号