select count(*) cautionLightAmount from cautionlight where ST_Intersects(geom,ST_GeomFromText('${geomWkt}',4326));select gid cautionLightGids from cautionlight where ST_Intersects(geom,ST_GeomFromText('${geomWkt}',4326)) order by gid;select st_astext(geom) cautionLightGeoms from cautionlight where ST_Intersects(geom,ST_GeomFromText('${geomWkt}',4326)) order by gid;select t2.name cautionLightRoadName from cautionlight t1 left join topo_centerroad t2 on t1.roadid=t2.id where ST_Intersects(t1.geom,ST_GeomFromText('{geomWkt}',4326)) order by t1.gid;比如这四句sql 我想用如下格式接收cautionLightAmount cautionLightGids cautionLightGeoms cautionLightRoadName
2 3 2 line1
由于需要用一个实体接收数十个形如这样的参数,希望可以通过mybatis框架传入一次sql就将所有的结果返回,向各位大佬求教,数据库类型为postgreSQL
2 3 2 line1
由于需要用一个实体接收数十个形如这样的参数,希望可以通过mybatis框架传入一次sql就将所有的结果返回,向各位大佬求教,数据库类型为postgreSQL
解决方案 »
- 在ibatis里面,怎么在程序中获得执行的SQL文
- 怎么去到这个iframe
- 我想做一个简单的留言板,运行之后报下面的错,那位朋友能帮助解答一下是什么错
- 50求助:如何在文件上传到一半的时候取消上传
- 一个下拉框的问题
- 在JSP中对服务器中的图片的删除该如何来处理????????????
- 为什么我总是得到NULL?
- 请问JSP简单问题??
- 用JAVA连接Mysql的问题,请各位帮帮忙呀~~(内附源代码)
- 请教javamail收附件问题?
- 请教一个关于Rocketmq报错DESC: service not available now, maybe disk full
- 有没有大佬帮我解决一下这个问题。
from cautionlight t1
left join topo_centerroad t2 on t1.roadid=t2.id
where ST_Intersects(t1.geom,ST_GeomFromText('{geomWkt}',4326)) order by t1.gid;