C#中长语句如何折行 这样可以string temp="aaaaa"+"bbbbb"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string sSql="select a,b,adsf,agdasg,xczsd" + " from sadfasd where asdf=asdfsa"; string sSql="select a,b,adsf,agdasg,xczsd\n" + "from sadfasd\n" + "where asdf=asdfsa"; string sSql=@"select a,b,adsf,agdasg,xczsd from sadfasd where asdf=asdfsa";前面加@ 即可然后即可直接回车了。vs2003 测试通过 若是字符串内换行。就用 + 号。如: string sSql="select a,b,adsf,agdasg,xczsd\n" + "from sadfasd\n" + "where asdf=asdfsa";其它,直接回车就行了。 string sql = sql1 + sql2 + sql3; 用@就可以了例如 string strSql="this is a long text ";可以写成string strSql = @" this is a long text "; 方法1string sSql="select a,b,adsf,agdasg,xczsd\n";sSql += "from sadfasd\n";sSql += "where asdf=asdfsa";方法2string sSql="select a,b,adsf,agdasg,xczsd\n" + "from sadfasd\n"; + "where asdf=asdfsa";方法3string sSql=@"select a,b,adsf,agdasg,xczsd\n from sadfasd\n"; where asdf=asdfsa"; string MySQL; MySQL="select * from uses";MySQL+=" where username='"+xx+"' and ; MySQL+="pwd='"+xx+"'"; 请问下如图两个表格我改用什么控件画出来呢? 请教多线程的问题:线程优先级 关于播放AVI文件的问题 如何将指定的文字,显示为图片? 【高分求救(500)】用Udp分包发送200K左右的图片。 c#递归 救命啊!数据修改更新问题!!!在线等候! 菜鸟求一段对数据库操作的简单代码 找朋友!!! 在richtextbox中,怎样托放文字? 在C#中怎样使用链表这种数据结构? 大家在做数据库方面的程序时,是把数据库读取专门做成一个类还是如何做好一些,哪 有这方面的例子。
" from sadfasd where asdf=asdfsa";
+ "from sadfasd\n"
+ "where asdf=asdfsa";
from sadfasd
where asdf=asdfsa";前面加@ 即可然后即可直接回车了。
vs2003 测试通过
若是字符串内换行。
就用 + 号。
如:
string sSql="select a,b,adsf,agdasg,xczsd\n"
+ "from sadfasd\n"
+ "where asdf=asdfsa";
其它,直接回车就行了。
string sql = sql1 + sql2
+ sql3;
例如 string strSql="this is a long text ";
可以写成
string strSql = @" this
is
a
long
text ";
string sSql="select a,b,adsf,agdasg,xczsd\n";
sSql += "from sadfasd\n";
sSql += "where asdf=asdfsa";
方法2
string sSql="select a,b,adsf,agdasg,xczsd\n"
+ "from sadfasd\n";
+ "where asdf=asdfsa";
方法3
string sSql=@"select a,b,adsf,agdasg,xczsd\n
from sadfasd\n";
where asdf=asdfsa";
MySQL="select * from uses";
MySQL+=" where username='"+xx+"' and ;
MySQL+="pwd='"+xx+"'";