摘要: 1 2 3 4 1 5 2 6 3 7 4 8 9 10 11 阅读全文
posted @ 2016-07-23 15:06 温故余学 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 rowcount的用法: 2 3 rowcount的作用就是用来限定后面的sql在返回指定的行数之后便停止处理,比如下面的示例, 4 set rowcount 10 5 select * from 表A 6 7 这样的查询只会返回表A中的前10条数据。它和 "select top 10 * from 表A" 的作用一样。注意一点,set rowcount 的设置会在整个会话... 阅读全文
posted @ 2016-05-09 20:51 温故余学 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: with tabs as ( select ROW_NUMBER() over(partition by customerID order by totalPrice) as rows,customerID,totalPrice, DID from OP_Order ) select MAX(rows) as '下单次数',customerID from tabs group... 阅读全文
posted @ 2016-05-09 09:03 温故余学 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 ALTER TRIGGER [InsertStoreJITOnloadQuantity] ON [dbo].[Sourceing] 2 After INSERT 3 AS 4 --登記計劃數量(新增時YN=0) 5 Declare @ID int 6 Declare @MaterielCode varchar(50) 7 Declare @Typeofrefno... 阅读全文
posted @ 2016-04-22 19:49 温故余学 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: 1 ALTER FUNCTION [dbo].[fnt_SplitString] 2 ( 3 @p1 varchar(Max), 4 @p3 varchar(255) 5 ) 6 RETURNS 7 @Table_Var TABLE 8 ( 9 c1 varchar(max) 10 ) 11 AS 12 BEGIN 13 declare @p... 阅读全文
posted @ 2016-04-02 16:01 温故余学 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @Description:<p>冒泡排序算法实现</p> 3 * @time:2016/03/29 下午14:40 4 */ 5 public static void bubbleSort(int[] arr) { 6 7 if (arr == null || arr.Lengt 阅读全文
posted @ 2016-04-01 19:26 温故余学 阅读(155) 评论(0) 推荐(0) 编辑
摘要: If Me.ActiveControl.GetType.BaseType.ToString = "System.Windows.Forms.TextBoxBase" Then Windows.Forms.SendKeys.Send("^{X}") End If If Me.ActiveControl.GetType.BaseType.ToString = "System.Windows.For... 阅读全文
posted @ 2016-03-30 11:46 温故余学 阅读(860) 评论(0) 推荐(0) 编辑
摘要: window7 64位无法显示打印窗问题 阅读全文
posted @ 2016-03-30 11:37 温故余学 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1 CIDR值: 2 1.掩码255.0.0.0:/8(A类地址默认掩码) 3 2.掩码255.128.0.0:/9 4 3.掩码255.192.0.0:/10 5 4.掩码255.224.0.0:/11 6 5.掩码255.240.0.0:/12 7 6.掩码255.248.0.0:/13 8 7.掩码255.252.0.0:/14 9 8.... 阅读全文
posted @ 2016-03-28 20:08 温故余学 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1 1)禁止所有表约束的SQL 2 select 'alter table '+name+' nocheck constraint all' from sysobjects where type='U' 3 4 2)删除所有表数据的SQL 5 select 'TRUNCATE TABLE '+name from sysobjects where type='U' 6 7 3)恢... 阅读全文
posted @ 2016-03-28 16:31 温故余学 阅读(400) 评论(0) 推荐(0) 编辑