IT人生
专注于java相关技术.
posts - 53,comments - 87,trackbacks - 0
数据库
在oracle中建立自动递增的主键列(转)      摘要: 一、创建自增序列:
create sequence cnet_wf_net_seq
increment by 1
start with 1
maxvalue 999999;  阅读全文
posted @ 2009-04-29 11:15 龙华城 阅读(633) | 评论 (0)  编辑
SQL Server日期查询时的日期格式转换(转载)      摘要: 问题提出:
经常会有这样的查询要求,输入或者日历控件产生的日期格式为 yyyy-mm-dd,而数据库中的字段是datetime类型,即yyyy-mm-dd hh:mm:ss。如果简单的使用between语句或者=语句进行查询,查询结果可能是错误或者数据不全。
假设 数据库中有 2008-2-27 日的数据,但直接使用 fielddate='2008-2-27' 或者使用 between '2008-2-27' and '2008-2-27'将不能查到该天的数据。   阅读全文
posted @ 2009-04-21 10:07 龙华城 阅读(2326) | 评论 (0)  编辑
SQL SERVER基本语法参考
posted @ 2009-03-31 18:58 龙华城 阅读(186) | 评论 (0)  编辑