一个SQL不行,必须使用存储过程

解决方案 »

  1.   

    >>>可以用一个查询语句得到?
    no wayuse
    select A.filename, B.username
    from A, B
    where A.fileid = B.fileidthen process the recordset in your application or if you are using SQL Server, consult
    http://www.csdn.net/expert/topic/1057/1057356.xml?temp=.2883112
      

  2.   

    http://www.csdn.net/expert/topic/1057/1057356.xml?temp=.2883112
      

  3.   

    跟上面的差不多
    asp.net中是不是用存储过程速度比较快一点?
      

  4.   

    yes, because stored procedures are pre-compiled, while a hand-coded sql statement has to go through the compilation process by the database system