社区
Web 开发
帖子详情
help!!-----Online----现给分!!!
眼镜猴子
2003-03-27 05:06:55
我想在jsp网页中显示多个数据表的查询结果
如:
select s.name c.course from studenttable s coursetable c where s.id="990045";
在executeQuery(sql)执行后结果集中的查询结果如何做才能在jsp网页中显示
...全文
56
9
打赏
收藏
help!!-----Online----现给分!!!
我想在jsp网页中显示多个数据表的查询结果 如: select s.name c.course from studenttable s coursetable c where s.id="990045"; 在executeQuery(sql)执行后结果集中的查询结果如何做才能在jsp网页中显示
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
眼镜猴子
2003-03-27
打赏
举报
回复
Thanks!------放分!!
foolbirds
2003-03-27
打赏
举报
回复
<%=rs.getString(1)%>
<%=rs.getString(2)%>
或者
<%=rs.getString(表.列名)%>
<%=rs.getString(表.列名)%>
眼镜猴子
2003-03-27
打赏
举报
回复
zxhong(红透半边天) takecare(大厅) moumouren(某某人) 还在吗?
眼镜猴子
2003-03-27
打赏
举报
回复
up!
眼镜猴子
2003-03-27
打赏
举报
回复
可以直接这样吗?
String name=rs.string("表名.列名");
moumouren
2003-03-27
打赏
举报
回复
<%
Result rs = stmt.executeQuery(sql);
while(rs.next()){
out.println(rs.getString(1));
}
%>
takecare
2003-03-27
打赏
举报
回复
<%
ResultSet rs = stmt.executeQuery(sql);
String name = null;
String course = null;
while (rs.next()) {
name = rs.getString(1);
course = rs.getString(2);
%>
name: <%= name %>
course: <%= course %>
<% } %>
zxhong
2003-03-27
打赏
举报
回复
<%=rs.getString(1)%>
<%=rs.getString(2)%>
gks_cn
2003-03-27
打赏
举报
回复
java.sql.resultset rs=executeQuery(sql);
while (rs.next())
{
out.print (rs.getString(1));
}
一文读懂Redis6的--bigkeys选项源码以及redis-bigkey-
onli
ne
项目介绍
本文
分
为两个部
分
,第一是详细讲解Redis6的--bigkeys选项相关源码是怎样实现的,第二部
分
为自己对--bigkeys源码的优化项目redis-bigkey-
onli
ne
的介绍。redis-bigkey-
onli
ne
是自己开发的非常好用、高效的bigkey查找...
新概念1 中英对照
----
-
----
-
1
----
-
----
-
Excuse me!Yes?Is this your handbag?Pardon?Is this your handbag?...
----
-
----
-
3
----
-
----
-
Lesson 3 Sorry, sir.对不起,先生。Listen to the tape then answer this quest
MySQL在线DDL gh-ost 使用说明
原文:gh-ost: GitHub's
onli
ne
schema migration tool for MySQL http://github.com/github/gh-ost MySQL在线更改schema的工具很多,如Percona的pt-
onli
ne
-schema-change、 Facebook的OSC和LHM等,但这些都是...
Iptables 指南 1.1.19
首先,我要把本文献给我那wonderful的女友Ni
ne
l(她给我的帮助远远胜过我给她的):希望我能 让你幸福,就象你给我的。( 译者注:我没有想到合适的词能表达作者女友的wonderful,你就自己想 去吧。还有,不知他们...
! [rejected] master -> master (fetch first) 【以及游离状态解决】
You are in ‘detached HEAD’ state, which means that you’re not on any branch Checkout a branch to make update possible. git branch -a git branch -v git checkout 128376^ git checkout master ...
Web 开发
81,116
社区成员
341,738
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章