王朝网络
分享
 
 
 

SQL 存储过程&算法

王朝mssql·作者佚名  2006-11-24
宽屏版  字体: |||超大  

代码还在完善中

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[t]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)

drop table [dbo].[t]

GO

CREATE TABLE [dbo].[t] (

[id] [int] IDENTITY (1, 1) NOT NULL ,

[lid] [nvarchar] (50) ,

[name] [nvarchar] (50) ,

[type] [int] NOT NULL

)

GO

insert into t (lid,[name],[type])

select "11","城站火车站",0

union all select "11","葵巷建国路口",0

union all select "11","菜市桥",0

union all select "11","潮鸣寺巷",0

union all select "11","宝善桥建国路口",0

union all select "11","宝善桥",0

union all select "11","市体育馆",0

union all select "11","武林广场",0

union all select "11","武林门",0

union all select "11","武林们马塍路口",0

union all select "11","八字桥",0

union all select "11","浙大西溪校区",0

union all select "11","庆丰村",0

union all select "11","教工路口",0

union all select "11","花园新村",0

union all select "11","浙江工商大学",0

union all select "11","电子科技大学",0

union all select "11","翠苑新村",0

union all select "57","大关小区",0

union all select "57","通信市场",0

union all select "57","德胜新村",0

union all select "57","潮王路口",0

union all select "57","朝晖五区",0

union all select "57","朝晖三区",0

union all select "57","西湖文化广场东",0

union all select "57","武林广场",0

union all select "57","武林小广场",0

union all select "57","半道红",0

union all select "57","文三路口",0

union all select "57","上宁桥",0

union all select "57","花园新村",0

union all select "57","浙江工商大学",0

union all select "57","文一路口",0

union all select "57","教工路北口",0

union all select "57","大关桥西",0

union all select "57","上塘路口",0

union all select "57","大关西六苑",0

union all select "57","香积寺路口",0

union all select "57","大关小区",0

union all select "14","武林小广场",0

union all select "14","昌化新村",0

union all select "14","长寿桥",0

union all select "14","延安路口",0

union all select "14","中大广场",0

union all select "14","众安桥",0

union all select "14","浙一医院",0

union all select "14","大学路北口",0

union all select "14","庆春门",0

union all select "14","金衙庄",0

union all select "14","总管塘",0

union all select "14","华东家具市场",0

union all select "14","近江村",0

union all select "14","汽车南站",0

union all select "14","汽车南站",1

union all select "14","近江村",1

union all select "14","华东家具市场",1

union all select "14","总管塘",1

union all select "14","金衙庄",1

union all select "14","庆春门",1

union all select "14","大学路北口",1

union all select "14","浙一医院",1

union all select "14","众安桥",1

union all select "14","中大广场",1

union all select "14","延安路口",1

union all select "14","长寿桥",1

union all select "14","昌化新村",1

union all select "14","武林小广场",1

union all select "K105","火车东站",0

union all select "K105","汽车东站",0

union all select "K105","严家弄",0

union all select "K105","景芳五区",0

union all select "K105","景御路口",0

union all select "K105","庆春东路",0

union all select "K105","采荷新村",0

union all select "K105","观音塘小区",0

union all select "K105","总管塘",0

union all select "K105","章家桥",0

union all select "K105","浙二医院",0

union all select "K105","官巷口",0

union all select "K105","湖滨",0

union all select "K105","胜利剧院",0

union all select "K105","孩儿巷",0

union all select "K105","延安新村",0

union all select "K105","武林小广场",0

union all select "K105","杭州大厦",0

union all select "K105","中北桥",0

union all select "K105","施家桥",0

union all select "K105","建国北路文晖路口",0

union all select "K105","文晖大桥东",0

union all select "K105","机神村",0

union all select "K105","天城路口",0

union all select "K105","新塘路口",0

union all select "K105","火车东站",0

union all select "39","闸口",0

union all select "39","水澄桥",0

union all select "39","海月桥",0

union all select "39","美政桥",0

union all select "39","复兴路北口",0

union all select "39","三廊庙",0

union all select "39","木材新村",0

union all select "39","二凉亭",0

union all select "39","望江门外",0

union all select "39","汽车南站",0

union all select "39","近江村",0

union all select "39","华东家具市场",0

union all select "39","总管塘",0

union all select "39","城站火车站",0

union all select "K101","城站火车站",0

union all select "K101","总管塘",0

union all select "K101","观音塘小区",0

union all select "K101","采荷新村",0

union all select "K101","红菱新村",0

union all select "K101","凤起东路口",0

union all select "K101","双菱路北口",0

union all select "K101","市红会医院",0

union all select "K101","建国路口",0

union all select "K101","新华路口",0

union all select "K101","中北路口",0

union all select "K101","延安路口",0

union all select "K101","浙大湖滨校区",0

union all select "K101","昌化新村",0

union all select "K101","市府大楼",0

union all select "K101","武林门马塍路口",0

union all select "K101","八字桥",0

union all select "K101","浙大西溪校区",0

union all select "K101","庆丰村",0

union all select "K101","玉古路天目山路口",0

union all select "K101","西湖体育馆",0

union all select "21/K21","城站火车站",0

union all select "21/K21","章家桥",0

union all select "21/K21","新城隧道东口",0

union all select "21/K21","解放路秋涛路口",0

union all select "21/K21","采荷新村",0

union all select "21/K21","红菱新村",0

union all select "21/K21","双菱路北口",0

union all select "21/K21","市红会医院",0

union all select "21/K21","建国路口",0

union all select "21/K21","新华路口",0

union all select "21/K21","中北路口",0

union all select "21/K21","延安路口",0

union all select "21/K21","浙大湖滨校区",0

union all select "21/K21","昌化新村",0

union all select "21/K21","市府大楼",0

union all select "21/K21","武林门马塍路口",0

union all select "21/K21","八字桥",0

union all select "21/K21","浙大西溪校区",0

union all select "21/K21","庆丰村",0

union all select "21/K21","跑马场",0

union all select "21/K21","黄龙体育中心",0

union all select "21/K21","浙大附中",0

union all select "21/K21","求是路",0

union all select "21/K21","西湖体育馆",0

union all select "58/K58","大关小区",0

union all select "58/K58","上塘路香积寺路口",0

union all select "58/K58","大关西六苑",0

union all select "58/K58","上塘路口",0

union all select "58/K58","大关桥西",0

union all select "58/K58","教工路北口",0

union all select "58/K58","文一路口",0

union all select "58/K58","浙江工商大学",0

union all select "58/K58","花园新村",0

union all select "58/K58","上宁桥",0

union all select "58/K58","文三新村",0

union all select "58/K58","八字桥",0

union all select "58/K58","武林门马塍路口",0

union all select "58/K58","武林小广场",0

union all select "58/K58","武林广场",0

union all select "58/K58","中北桥",0

union all select "58/K58","朝晖一区",0

union all select "58/K58","朝晖三区",0

union all select "58/K58","朝晖五区",0

union all select "58/K58","潮王路口",0

union all select "58/K58","德胜新村",0

union all select "58/K58","通信市场",0

union all select "58/K58","大关小区",0

union all select "K101","西湖体育馆",1

union all select "K101","玉古路天目山路口",1

union all select "K101","庆丰村",1

union all select "K101","浙大西溪校区",1

union all select "K101","八字桥",1

union all select "K101","武林门马塍路口",1

union all select "K101","市府大楼",1

union all select "K101","昌化新村",1

union all select "K101","浙大湖滨校区",1

union all select "K101","延安路口",1

union all select "K101","中北路口",1

union all select "K101","新华路口",1

union all select "K101","建国路口",1

union all select "K101","市红会医院",1

union all select "K101","双菱路北口",1

union all select "K101","凤起东路口",1

union all select "K101","红菱新村",1

union all select "K101","采荷新村",1

union all select "K101","观音塘小区",1

union all select "K101","总管塘",1

union all select "K101","城站火车站",1

/****** Object: Stored Procedure dbo.Search Script Date: 2005-9-8 10:28:35 ******/

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Search]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)

drop procedure [dbo].[Search]

GO

SET QUOTED_IDENTIFIER OFF

GO

SET ANSI_NULLS ON

GO

/****** Object: Stored Procedure dbo.Search Script Date: 2005-9-8 10:28:35 ******/

CREATE proc Search

@name1 nvarchar(50),

@name2 nvarchar(50)

as

[1] [2] 下一页

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
>>返回首页<<
推荐阅读
 
 
频道精选
 
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
© 2005- 王朝网络 版权所有