string Sql="select * from a where id='"this.txtbox.text"'"如何换成两行呢!

解决方案 »

  1.   

    string Sql = "select * from a where id='" +
                    this.txtbox.text + "'";
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
      

  2.   

    string Sql="select * from a " 
    +"where id='"this.txtbox.text"'"
      

  3.   

    string Sql  ="select * from a where id='";
           Sql +="this.txtbox.text"'";