随笔分类 -  sqlserver

摘要:http://www.cnblogs.com/wanyuan8/archive/2011/11/09/2243483.html 阅读全文
posted @ 2017-10-17 14:29 developer_os 阅读(280) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/ice5/articles/1187199.html T-SQL 字符串前加 N 是什么意思 @strSql NVARCHAR(MAX) = N'', 比如 select @status = N'stopped' 那么其中的字符串 stopped 前面为 阅读全文
posted @ 2017-10-17 14:20 developer_os 阅读(286) 评论(0) 推荐(0)
摘要:1:SET XACT_ABORT ON 语法 SET XACT_ABORT { ON | OFF } 注释 当 SET XACT_ABORT 为 ON 时,如果 Transact-SQL 语句产生运行时错误,整个事务将终止并回滚。为 OFF 时,只回滚产生错误的 Transact-SQL 语句,而事 阅读全文
posted @ 2017-10-17 14:17 developer_os 阅读(359) 评论(0) 推荐(0)
摘要:不能将java.util.Date直接装到数据库,必须将他转化为java.sql.Date类型类似的东西,然后才能装进去。 但java.sql.Date没有 时分秒。所以在需要做日志的场景是不行。 所以2的地方转化过存到数据看就没有时分秒了。 用1的方法可以保留时分秒。 阅读全文
posted @ 2017-08-29 15:54 developer_os 阅读(166) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/laoyumi/p/4028254.html 常用表: select * from sysdatabases ;select * from sysobjects; 阅读全文
posted @ 2017-08-22 09:54 developer_os 阅读(196) 评论(0) 推荐(0)