zoukankan      html  css  js  c++  java
  • 经典sql

    DECLARE
     @retval int,
     @param1 int
     EXECUTE @retval=master.dbo.xp_fileexist 'D:TkSoftSamplePicFabricImgA1NC8606.BMP', @param1 OUTPUT 
     IF @param1 = 0
     PRINT 'File does not exist!'
     ELSE
     PRINT 'File exists!' 
     
     
     select * into samp
    from  openrowset('SQLOLEDB', '192.168.0.180'; 'sa'; 'hualong2012', soyerp.dbo.samp) 
    
    
    
    declare @auid nvarchar(50)
    declare auth_cur cursor for
    select replace(花型编号,' ','" "')  
    from samp
    open auth_cur
    fetch next from auth_cur into @auid
    while (@@fetch_status=0)
      begin
       DECLARE
     @retval int,
     @param1 int,
     @name nvarchar(200)
     set @name='D:TkSoftSamplePicFabricImg'+@auid+'.BMP'
     EXECUTE @retval=master.dbo.xp_fileexist @name, @param1 OUTPUT 
     IF @param1 = 0
     print @auid
        fetch next from auth_cur into @auid
      end
    close auth_cur
    deallocate auth_cur
  • 相关阅读:
    侧边工具栏
    proguard 使用说明
    人员组成
    google play
    大数据平台相关
    HttpClient
    库克
    html5 开发 android 注意点
    htm5 动画制作 工具
    JAVA取得WEBROOT物理路径
  • 原文地址:https://www.cnblogs.com/ChineseMoonGod/p/5790736.html
Copyright © 2011-2022 走看看