<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    allen
    專注于java ee技術,包括struts,jsf,webwork,spring,hibernate,ibatis
    posts - 7,  comments - 9,  trackbacks - 0
    ?Create?? Proc?? proc_insert?? (@tablename?? varchar(256))????
    ??? as?????????????????????????????????????????????? --?? 表名稱??
    ? begin????
    ????? set?? nocount?? on??
    ????????? Declare?? @sqlstr???? varchar(4000),??
    ????????????????????????? @sqlstr1?? varchar(4000),??
    ????????????????????????? @sqlstr2?? varchar(4000)??
    ???
    ??????????? Select?? @sqlstr='select?? ''Insert?? '+@tablename????
    ???
    ??????????????? Select?? @sqlstr1=?? '?? Values?? (?? ''+',?????? @sqlstr2='?? ('??
    ???
    ??????????????? 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??
    ?????
    ??????????????? exec(?? @sqlstr)??
    ???
    ??????????????? set?? nocount?? off??
    ???
    ? end??
    ???
    ?
    GO
    posted on 2007-03-06 15:41 robbin163 閱讀(525) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(3)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产高清对白在线观看免费91| 亚洲国产成人久久| 春暖花开亚洲性无区一区二区| aⅴ在线免费观看| 亚洲精品在线不卡| 国产成人精品免费视频网页大全| 亚洲av永久无码精品表情包| 国产精品美女久久久免费 | 啊灬啊灬别停啊灬用力啊免费看| 亚洲色大成网站www久久九| 永久黄网站色视频免费| 亚洲成a人片在线观看天堂无码| 成年人性生活免费视频| 成人亚洲国产精品久久| 亚洲精品黄色视频在线观看免费资源| 黄色一级毛片免费| 亚洲综合精品香蕉久久网| a级片免费在线观看| 亚洲一区免费观看| 国产精品入口麻豆免费观看| 亚洲日韩精品A∨片无码加勒比| 国产高清免费观看| 2022国内精品免费福利视频| 亚洲AV永久无码精品水牛影视| 色播精品免费小视频| 久久精品国产亚洲AV| 亚洲日韩精品一区二区三区无码 | 一级毛片试看60分钟免费播放| 91麻豆国产自产在线观看亚洲| 久久久久久久久久国产精品免费| 亚洲美女视频一区二区三区| 韩国二级毛片免费播放| 老司机精品免费视频| 亚洲国产精品线观看不卡| 女性无套免费网站在线看| 久久av免费天堂小草播放| 亚洲美女在线观看播放| 国产又粗又长又硬免费视频| 永久在线观看免费视频| 亚洲欧洲日本精品| 亚洲成aⅴ人片久青草影院|