摘要:                    
数据库中涉及datetime类型字段,设置默认值时 设置为'1900-01-01',注意带引号(''),不带引号,会出现错误,默认值会变成 1905/3/14 原因是 你那样设置,他当作是1900-1-1 = 1898。然后你一计算就知道了。select dateadd(dd,1898,'1900-                阅读全文
            
        随笔档案-2020年07月
SQL Server缓存依赖设置
2020-07-03 09:42 by newbirth, 621 阅读, 收藏,
摘要:                    
1.为数据库VIAOSDB 启用缓存依赖,自动生成以下数据表和存储过程--表AspNet_SqlCacheTablesForChangeNotification --存储过程AspNet_SqlCachePollingStoredProcedureAspNet_SqlCacheQueryRegist                阅读全文
            
        格式化文本(防止SQL注入)
2020-07-02 19:32 by newbirth, 457 阅读, 收藏,
摘要:                    
/// <summary> /// 格式化文本(防止SQL注入) /// </summary> /// <param name="str"></param> /// <returns></returns> public static string Formatstr(string html) { S                阅读全文
            
        
                    
                
浙公网安备 33010602011771号