where a.college_name='''材料科学与工程学院'''

解决方案 »

  1.   

    where a.college_name='''材料科学与工程学院''''
      

  2.   

    select* from  OPENROWSET('Microsoft.Jet.OLEDB.4.0', 
       'F:\dat\db1.mdb';'admin';'', 'select [no]  from no1 where it="5"')这里的字符串是这样用的
    是两个";
    USE pubs
    GO
    SELECT a.*
    FROM OPENROWSET('SQLOLEDB','lutian';'sa';'',
       'SELECT * FROM pubs.dbo.authors where au_lname=''Smith''') AS a
    GO
    是两天';
      

  3.   

    假如where条件用参数怎么写啊
    create PROCEDURE sp_studentinfo_in
    @wheresql char(100)
    as
       insert td_student_card  select  b.*   FROM OPENROWSET('SQLOLEDB','202.194.78.5';'highsoft';'high2000','SELECT a.college_name,a.GradCertENum,a.DegreeCertNum,a.DegreeCertENum  FROM student.dbo.view_student_card_detail a where a.college_name=@wheresql')  as b    
    GO