我在JSP中用jdbc访问access数据库,但是每次执行sql语句都要很长时间,但是同一sql语句用MySqlPlus查询很快就出结果了,请各位指点这是什么原因?是一次换乘的查询,语句如下:
select distinct A.name from
(
select distinct name from stationinfo where checi in
(
select checi from stationinfo where name ='石家庄'
)
) A,
(
select distinct name from stationinfo where checi in
(
select checi from stationinfo where name like '齐齐哈尔'
)
) B
where A.name = B.name order by A.name
select distinct A.name from
(
select distinct name from stationinfo where checi in
(
select checi from stationinfo where name ='石家庄'
)
) A,
(
select distinct name from stationinfo where checi in
(
select checi from stationinfo where name like '齐齐哈尔'
)
) B
where A.name = B.name order by A.name
解决方案 »
- JAVA后台给文章内容标红
- SQLserver2008数据库连接
- 我在用myeclipse连接sql2000出现了问题,谁可以帮我解答下么?
- 在 sql 2000数据库中 如何删除指定表中的指定字段!!!!!!!!在线等!!!!来者有分 先给出答案者分多
- jsp 里如何 把一个对象赋给 属性
- 保留一位小数正则
- 求助加密解密的例子!
- 我对在jsp中使用JavaBean不是很理解,特别是编译后的.class文件的放置路径不清楚,请各位多多指点!!!
- oracle 中的图片在jsp中显示的问题
- 要求上基本没问题,我还需要准备什么?一般会问些什么问题呢。
- [在线等]textarea 为什么在为空的时候,既不是""也不是NULL呢???
- xml更新与页面刷新问题
是因为这个语句复杂了所以慢么?
这个语句是查询两个车站之间的一次换乘,返回中转站名