在分界的地方回车换行,如value前.

解决方案 »

  1.   

    string s = "insert "
             + "into "
             + "table ";
      

  2.   

    to zzcl  好像不行
    to cnjj  sql语句本来的“”怎么处理,不会是
     string s = " "jjj"
                 +"jljk"
                 +"dfdfd" ";    ???
      

  3.   

    dim strsql as string
    strsql="sdfsdfsdfsadfsdf" & _
               "sdfasdfasdfasdfasdfasdfasdfsadfsdfsdfs" & _
                     "asdfsadf"
      

  4.   

    给你个长点的SQL语句,注意分号和引号的使用
    update = "UPDATE miscust SET scust_code ='"+codelab.Text+"', scust_addr_name ='"+addrname.Text+"'"+
    ",scust_en_name = '"+enname.Text+"', scust_cn_name = '"+cnname.Text+"', saddress ='"+address.Text+"'" +
    ", slocality ='"+slocality.Text+"', stel1 ='"+tel1.Text+"', stel2 = '"+tel2.Text+"', sfax = '"+fax.Text+"', se_m" +
    "ail ='"+email.Text+"', swww ='"+www.Text+"', scurrency ='"+currency.Text+"', sregister_coffer ='"+regist.Text+"'" +
    ", spay_terms ='"+payterms.Text+"', spay_way = '"+payway.Text+"', ssale ='"+sale.Text+"', sboss" +
    "='"+boss.Text+"', scust_buyer ='"+buyer.Text+"', sgrade ='"+grade.Text+"', srmk ='"+re.Text+"',"+
    "suseyn ='1', supdate = '"+seda+"', supuser ='㏄玦' where scode='"+scode+"' ";
      

  5.   

    to wilun80311;你的是vb.net的吧,c#里好像不行
    本来c#里换行应该是不用什么的,可sql就是不对看楼上的,好像就是上一行末尾“+
    下一行开头”
    但有些用了,有些没用
    有什么讲究?
      

  6.   

    String strSQL="select OrderId,OrderDate,SendDate,"+
              "CustName,Email,Address,Qty,ProductName,"+
              "Category,Price,Total=(Qty*Price) "+
              "from Orders,Customers,Products "+
              "where OrderId=@OrderId and "+
              "Orders.CustId=Customers.CustId and "+
              "Orders.ProductId=Products.ProductId";