摘要: 此解法来自博客园思想瞭望者开设之“sql精英群”对话。iceline(43417365) 11:36:59 现在PATH的上下级关系是对了,我如何更新parentIDthanks(305380844) 12:54:12 做出来了,试试update test set parentid = b.parentidbfrom test ,(select a.id, a.parentid, a.path , b.id as parentidb, b.path as bpathfrom test a cross join test bwhere len(REPLACE(a.path, b.path, &# 阅读全文
posted @ 2012-01-17 09:33 thanks 阅读(373) 评论(0) 推荐(1) 编辑
摘要: select p.name, m.definitionfrom sys.procedures p inner join sys.sql_modules mon p.object_id = m.object_idwhere m.definition like '%关键字%' 阅读全文
posted @ 2012-01-10 15:34 thanks 阅读(157) 评论(0) 推荐(0) 编辑
摘要: -----------------------------------Author: liangCK 小梁--Title : 查每个分组前N条记录--Date : 2008-11-13 17:19:23-----------------------------------> 生成测试数据: #TIFOBJECT_ID('tempdb.dbo.#T')ISNOTNULLDROPTABLE#TCREATETABLE#T (IDVARCHAR(3),GIDINT,AuthorVARCHAR(29),TitleVARCHAR(39),DateDATETIME)INSERTINTO 阅读全文
posted @ 2011-12-14 15:07 thanks 阅读(254) 评论(0) 推荐(0) 编辑
摘要: [广州]fm(309148970) 16:56:41SET QUOTED_IDENTIFIER ON GOSET ANSI_NULLS ON GOcreate procedure dbo.fm_update_basename@basetable varchar(100),@columlist varchar(255),@basecolum varchar(100)as-----调试用---set ... 阅读全文
posted @ 2010-10-21 17:01 thanks 阅读(215) 评论(0) 推荐(0) 编辑
摘要: List<int> val1 = new List<int> { 1, 2, 3, 4 };List<int> val2 = new List<int> { 2, 3 };选择val1中有val2中也有的值:第一种:var item = from v1 in val1 from v2 in val2 where v1 == v2 select v1;第二种:var item = val1.Where(v => val2.IndexOf(v) > -1);第三种:var item = val1.Join(val2, v1 => v 阅读全文
posted @ 2010-10-21 10:12 thanks 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 一个练习的程序,分为两部分。左边列表显示算出的素数,右边显示每个偶数的两个奇素数之和。程序很简陋,还请大家多提意见。Form1.Designer.cs[代码]Form1.cs[代码]运行效果图 阅读全文
posted @ 2010-09-22 20:26 thanks 阅读(512) 评论(4) 推荐(2) 编辑
摘要: 我给我们公司做的,新的网站~~ http://www.ai-bank.com 请大家多提提意见 阅读全文
posted @ 2009-02-16 10:46 thanks 阅读(380) 评论(9) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr... 阅读全文
posted @ 2004-08-25 09:08 thanks 阅读(891) 评论(2) 推荐(0) 编辑
摘要: //delphiunit emCopy; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ADODB, DB, StdCtrls, ExtCtrls; type TForm1 = class(TForm) ADOConnection1:... 阅读全文
posted @ 2004-08-11 17:17 thanks 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: private void saveImage() { string baseUri = "http://www.hjxsy.com/hjxp/showimg.asp?id="; for(int _number = 1; _number "); string _pm = pm2.Substring(0,pm3).Trim(); int firstY... 阅读全文
posted @ 2004-06-30 13:41 thanks 阅读(1763) 评论(0) 推荐(0) 编辑