摘要:
此解法来自博客园思想瞭望者开设之“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, 阅读全文
摘要:
select p.name, m.definitionfrom sys.procedures p inner join sys.sql_modules mon p.object_id = m.object_idwhere m.definition like '%关键字%' 阅读全文
摘要:
-----------------------------------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 阅读全文
摘要:
[广州]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 ... 阅读全文
摘要:
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 阅读全文
摘要:
一个练习的程序,分为两部分。左边列表显示算出的素数,右边显示每个偶数的两个奇素数之和。程序很简陋,还请大家多提意见。Form1.Designer.cs[代码]Form1.cs[代码]运行效果图 阅读全文
摘要:
我给我们公司做的,新的网站~~ http://www.ai-bank.com 请大家多提提意见 阅读全文
摘要:
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... 阅读全文
摘要:
//delphiunit emCopy; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ADODB, DB, StdCtrls, ExtCtrls; type TForm1 = class(TForm) ADOConnection1:... 阅读全文
摘要:
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... 阅读全文