select a,b,c from table1 where a like '%string1%' and b like '%string2%' c like '%string3%' 
有记录吗??

解决方案 »

  1.   

    bcp "SELECT au_fname, au_lname FROM 库名..authors ORDER BY au_lname" queryout E:\boc\DT.txt -c -Sservername -Usa -Ppassword
      

  2.   

    试试:
    bcp "select a,b,c from 库名..table1 where a like '%string1%' and b like '%string2%' and c like '%string3%' "     queryout D:\test.txt -Sserver -Usa -Ppassword -w -e
      

  3.   


     to :pengdali(大力) 1.肯定有记录.
    2.我用的是   database.dbo.table