王彬 程序员 王彬 ASP PHP C# .NET AJAX 笔记

我的PHP,.NET开源之路

随笔分类 -  数据库

数据库
设置字段默认值sql语句
摘要:ALTER TABLE [wb_khda] ADD DEFAULT (getdate()) FOR [up_date] 阅读全文
posted @ 2012-03-18 09:50 wangbin 阅读(7678) 评论(0) 推荐(0)
游标Cursor 使用小例 (SQLServer)
摘要:1 表table: 表名:TblTestcolumntypelength-------------------------------iIdint4testvalueint4testDescchar102 游标示例declare @MyTestCursor Cursorset @MyTestCursor= Cursor for select iId,testvalue from TblTestopen @MyTestCursordeclare @iTestId intdeclare @iTestValue intfetch @MyTestCursor into @iTestId,@iTestV 阅读全文
posted @ 2011-06-18 20:49 wangbin 阅读(595) 评论(0) 推荐(0)
SQL Server 2005 数据类型和.Net数据类型的对应关系
摘要:SQL Server 2005 数据类型 .NET Framework 数据类型 LINQ 数据类型 bigint System.Int64 long binary System.Byte[] System.Data.Linq.Binary bit System.Boolean bool char System.String string datetime System.DateTime System.DateTime decimal System.Decimal decimal float System.Double double image System.Byte[] System.Dat 阅读全文
posted @ 2011-06-17 20:13 wangbin 阅读(305) 评论(0) 推荐(0)