将Long类型转换为DateTime类型 /// /// 将Long类型转换为DateTime类型 /// /// long /// public static DateTime ConvertLongDateTime(...
                            
                            
                                分类:
其他好文   时间:
2015-03-29 20:45:27   
                                阅读次数:
116
                             
                         
                    
                        
                            
                            
                                DATETIMEw. InformatReads datetime values in the form ddmmmyy hh:mm:ss.ss or ddmmmyyyy hh:mm:ss.ss.SyntaxDATETIMEw.Syntax Descriptionwspecifies the width of the input field.Default	18Range	13–40Details...
                            
                            
                                分类:
其他好文   时间:
2015-03-28 17:21:38   
                                阅读次数:
158
                             
                         
                    
                        
                            
                            
                                在SQL server 中,有两种日期时间类型:1、DateTime 它的范围是 1753-1-1 至 9999-12-312、DateTime2 它的满园是 0001-01-01 至 9999-12-31EF实体框架给一个DateTime字段加载一个默认值是{01/01/0001 00:00:00...
                            
                            
                                分类:
其他好文   时间:
2015-03-28 12:57:10   
                                阅读次数:
174
                             
                         
                    
                        
                            
                            
                                http://www.tuicool.com/articles/BNVBR3在Sql Server2005中,如果将某字段定义成日期时间类型DateTime,那么在视图中会默认显示成年月日时分秒的方式(如2013/8/6 13:37:33)如果只想显示成年月日形式,不要时分秒,那么该怎么办呢?第一种...
                            
                            
                                分类:
Web程序   时间:
2015-03-22 00:26:34   
                                阅读次数:
174
                             
                         
                    
                        
                            
                            
                                创建流程:创建代码: 1 --创建Partition Function并制定分区规则样例 2 Create Partition Function PF_OnCreateDate(datetime) 3 As Range Right For Values('20141001','20141101',....
                            
                            
                                分类:
其他好文   时间:
2015-03-22 00:22:07   
                                阅读次数:
159
                             
                         
                    
                        
                            
                            
                                1 取值后格式化{0:d}小型:如2005-5-6{0:D}大型:如2005年5月6日{0:f}完整型2 当前时间获取 DateTime.Now.ToShortDateString3 取值中格式化SQL Server里面可能经常会用到的日期格式转换方法:sql server使用convert来取得d...
                            
                            
                                分类:
数据库   时间:
2015-03-21 11:09:28   
                                阅读次数:
166
                             
                         
                    
                        
                            
                            
                                CREATE TRIGGER [dbo].[table1_column1] ON [dbo].table1 for INSERT, UPDATE --after INSERT, UPDATE ASDECLARE @canshu1 varchar(30), @rq datetime, @rq2 dat...
                            
                            
                                分类:
其他好文   时间:
2015-03-20 23:42:44   
                                阅读次数:
153
                             
                         
                    
                        
                            
                            
                                create table 图书表( 书号 varchar(50), 书名 varchar(50), 单价 int )create table 销售表( 书号 varchar(50), 销售时间 datetime, 销售数量 int )alter table 图书表 alter column 书号 v...
                            
                            
                                分类:
其他好文   时间:
2015-03-20 20:16:06   
                                阅读次数:
153
                             
                         
                    
                        
                            
                            
                                use db_sqlserver;gocreate table db_table6( 订单编号 int primary key, 订单号 varchar(50) unique, 职工号 varchar(50) references db_table5(职工号), 订购日期 datetime...
                            
                            
                                分类:
数据库   时间:
2015-03-20 18:17:32   
                                阅读次数:
221
                             
                         
                    
                        
                            
                            
                                sql 游标例子 根据一表的数据去筛选另一表的数据DECLARE @MID nvarchar(20)DECLARE @UTime datetimeDECLARE @TBL_Temp table( MID nvarchar(20),	Uptime datetime, Chat nvarch...
                            
                            
                                分类:
数据库   时间:
2015-03-20 09:14:28   
                                阅读次数:
175