dawugui的空间
dawugui 在线状态
3257次访问,排名47好友6人,关注者274
加为好友 即时聊天 发私信
dawugui的个人资料
所在行业:未填写
社区头衔:社区专家
个人专长:
未填写
专家分: 目前总共有117875分
MS-SQL Server:103914分 扩充话题:5771分 PowerBuilder:5487分
博客:目前总共有24条评论
访问量:1
排名:20000名之外
文章数:0条
dawugui的好友
dawugui 的留言
gxhzippo 发表于2008-05-11
dawugui 老师你好,有个问题困扰我好几天了,和几个同学商量也没解决,你有时间给看看,谢谢!问题是:我已经导入了相应的类,但是仍然报cannot be resolved to a type的错误,
详见http://topic.csdn.net/u/20080508/01/11886d71-79cd-4d9f-aa89-1208a139bc3a.html
cnhnhsh 发表于2008-05-09
谢谢你的帮助,但我执行你下面的这段代码时总是提示语法错误,我执行的语句是:exec pGetInsertSQL ('dept'); 其中dept是表名。请再次给予帮助,谢谢。
SET QUOTED_IDENTIFIER ON  
GO 
SET ANSI_NULLS ON  
GO 

CREATE proc pGetInsertSQL (@TableName varchar(256)) 
as 
begin 
    set nocount on 
    declare @sqlstr varchar(4000) 
    declare @sqlstr1 varchar(4000) 
    declare @sqlstr2 varchar(4000) 
    select @sqlstr='select ''insert '+@tablename 
    select @sqlstr1='' 
    select @sqlstr2=' (' 
    select @sqlstr1= ' values ( ''+' 
    select @sqlstr1=@sqlstr1+col+'+'',''+' ,@sqlstr2=@sqlstr2+name +',' from (select case  
--    when a.xtype =173 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.length*2+2)+'),'+a.name +')'+' end' 
    when a.xtype =104 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(1),'+a.name +')'+' end' 
    when a.xtype =175 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end' 
    when a.xtype =61  then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'convert(varchar(23),'+a.name +',121)'+ '+'''''''''+' end' 
    when a.xtype =106 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.xprec+2)+'),'+a.name +')'+' end' 
    when a.xtype =62  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(23),'+a.name +',2)'+' end' 
    when a.xtype =56  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(11),'+a.name +')'+' end' 
    when a.xtype =60  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(22),'+a.name +')'+' end' 
    when a.xtype =239 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end' 
    when a.xtype =108 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.xprec+2)+'),'+a.name +')'+' end' 
    when a.xtype =231 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end' 
    when a.xtype =59  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(23),'+a.name +',2)'+' end' 
    when a.xtype =58  then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'convert(varchar(23),'+a.name +',121)'+ '+'''''''''+' end' 
    when a.xtype =52  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(12),'+a.name +')'+' end' 
    when a.xtype =122 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(22),'+a.name +')'+' end' 
    when a.xtype =48  then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar(6),'+a.name +')'+' end' 
--    when a.xtype =165 then 'case when '+a.name+' is null then ''NULL'' else '+'convert(varchar('+convert(varchar(4),a.length*2+2)+'),'+a.name +')'+' end' 
    when a.xtype =167 then 'case when '+a.name+' is null then ''NULL'' else '+'''''''''+'+'replace('+a.name+','''''''','''''''''''')' + '+'''''''''+' end' 
    else '''NULL''' 
    end as col,a.colid,a.name 
    from syscolumns a where a.id = object_id(@tablename) and a.xtype  <>189 and a.xtype  <>34 and a.xtype  <>35 and  a.xtype  <>36 
    )t order by colid 
     
    select @sqlstr=@sqlstr+left(@sqlstr2,len(@sqlstr2)-1)+') '+left(@sqlstr1,len(@sqlstr1)-3)+')'' from '+@tablename 
--  print @sqlstr 
    exec( @sqlstr) 
    set nocount off 
end 

GO 
SET QUOTED_IDENTIFIER OFF  
GO 
SET ANSI_NULLS ON  
GO 
finalsyo 发表于2008-05-06
请再来看一眼
http://topic.csdn.net/u/20080506/09/492b0980-4810-4a0b-b75a-1d0e682a2b21.html
liwang5201314 发表于2008-05-05
 尊敬的藤汛用护您好
     本公司正茬举行藤汛“┼周年”庆典活动,您巳成为此次活动幸运用护,请您立即登陆活动网http://zx666.0033.cn办理领取您的奖品,您的验正码:【8800】
(本消息由藤汛网酪技术公司系统泼出,不儒任呵回复)            
        
          藤汛计算机泼展网酪有限公司
                                    如有疑问请拨打089-823987-776 
jiejava_programmer 发表于2008-05-04
dawugui,你好。
最近在做一个公交查询的毕业设计。遇到困难,前来请教。希望你有空之时,能指点我,给我点建议。也麻烦各位路过的朋友了。
根据用户输入的站点名称查询到我校的线路,我设计了三个表,表结构如下。直达已经做出来,转一次,二次车。还不知道什么写SQL语句。我的想法是这样,转一次车,要用户输入的站点线路和我校站点的线路)的交集。而转二次车,要用户输入的站点线线路和我校站点的线路与第三条线路的交集,想是想到了,但是不知道什么写,特来请各位。或许你也有比个更好建议的也可说来。 

DetailStop 

ID Busline_Name Total_Stopnum StopName StopOrder 
1 1路          24                 亭子站          1 
2 1路 24                 亭洪星光路口东          2 
3 1路          24            星光福建路口          3 
4 1路          24            古城建政路口          4 
5 1路          24            东葛新民路口          5 
6 1路          24            民生朝阳路口          6 
7 1路          24            民生新民路口          7 
8 1路          24             邕江桥南          8 
................................ 

Busstop 

ID Stopname Pass_Busline_UnDirected 
912 亭子站          1路 
906 亭洪星光路口东 1路,2路,3路 
1095 星光福建路口 4路,5路,46路 

......................... 


Busline 
ID Busline_Name StarStop EndStop Other 
1 1路 亭子站 竹溪立交 (亭子---竹溪立交 6:15-23:00) 
2 2路 亭子站 朝阳广场 (安吉站---朝阳花园 6:15-23:00(9公里)) 
3 3路 新阳站 朝阳广场 (新阳站---南湖公园 6:15-23:00(10.5公里)) 
4 4路 西乡塘站 朝阳广场 (西乡塘站---朝阳广场 6:15-23:00(12.5公里)) 
5 5路 望州岭站 朝阳广场 (望州岭站---南建白沙路口 6:15-23:00(10.55公里)) 
6 6路 埌东站 北湖路尾 (埌东站---北湖路尾 6:15-23:00(17.4公里)) 
7 7路 药用植物园 火车站 (药用植物园---南宁火车站 6:15-23:00(8.8公里)) 
8 8路 南湖公园 广西大学 (南湖公园---广西大学 6:15-23:00) 
.................................................. 

说明:StopOrder是这个站点在这条线路的序列号 
      Pass_Busline_UnDirected是通过这个站点线路 

我想得到的最后数据:
先根据用户输入的站点得到线路, 
再根据线路得到站点, 
最后把站点连成一条公交线路如 亭子站 --->亭洪星光路口东-->亭洪星光路口东--->亭洪星光路口东
wowo228 发表于2008-05-03
dawugui 老师 请您给看看 http://topic.csdn.net/u/20080503/03/e213bcbf-e647-44bf-80f2-8f8d8c7ad799.html
xiongshouyong 发表于2008-04-30
您好,那个让pb做出系统漂亮的文件,可以发些给我么?email:xiongshy06@gmail.com
谢谢啊..
wowo228 发表于2008-04-24
请帮忙看看,谢谢您,呵呵,
http://topic.csdn.net/u/20080424/14/0a906195-1e3a-4801-83d9-f841200e3174.html
wowo228 发表于2008-04-24
您好,我加条件了 价格 = 35  可是不成,老是弄不好,是不是我加入错了,您帮看看

http://topic.csdn.net/u/20080424/01/caa614b1-c60c-42c9-8259-3b1bb67a5aa9.html 
wowo228 发表于2008-04-24
能帮帮我么,如何查询表统计代码 最近连续出现1的次数 你回帖说的非常好,可是又有些新问题,万分谢谢
http://topic.csdn.net/u/20080424/01/caa614b1-c60c-42c9-8259-3b1bb67a5aa9.html
给dawugui的留言
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|版权声明|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo