用DW编辑jsp时一个长的赋值语句是为了美观,要换行显示如下,但这样子直接回车换行,运行时语句会不认,如何解决啊??String desire = "
Select
col1,col2,col3,col4From
t1,t2
Where
t1.id=t2.ah_id
And
t1.created_by = lb_created_by
";只可以这样 String desire = "Select col1,col2,col3,col4 From t1,t2 Where t1.id=t2.ah_id And t1.created_by = lb_created_by"; ,
很乱哈~~~ 求教!
Select
col1,col2,col3,col4From
t1,t2
Where
t1.id=t2.ah_id
And
t1.created_by = lb_created_by
";只可以这样 String desire = "Select col1,col2,col3,col4 From t1,t2 Where t1.id=t2.ah_id And t1.created_by = lb_created_by"; ,
很乱哈~~~ 求教!
解决方案 »
- web中插入的代码怎么实现自动格式化
- 我的项目从orcle 移植到 sqlserver 出现了这个问题。请教高手了
- 想学一下Tapestry,各位前辈有什么好资料推荐吗?
- spring中配置freemarker出错
- 求 多维下拉菜单 代码
- 表单提交数据的问题? 我用的<input type="file" name="fujian">这种可以代浏览功能的,为什么到了另一页面得不到值????
- 大家来看看这是什么错误!!
- 网管限定cpu使用30%的问题,有jsp网站精练的朋友来帮忙
- 急!!!关于window.open()的问题,帮帮忙吧~!
- IBM HTTP Server(高分,解决了马上给分)
- 高手帮我看看这是什么错误?
- 高手请进
"col1,col2,col3,col4 "+
"From t1,t2 "+
"Where t1.id=t2.ah_id "+
"And "+
"t1.created_by = lb_created_by";
想怎么放就怎么放,
这样的语句在jsp页面上没有必要非要分个格式,
在这sql语句只是一个字符串
desire.append("Select col1,col2,col3,col4 ");
desire.append("From t1,t2 Where t1.id=t2.ah_id ");
desire.append("And t1.created_by = lb_created_by");