摘要: 在一个表报警信息中插入记录,但是没有x,y值信息,其中的x,y值要根据记录中的现场警力编号到gps警员表中查取xy值,然后付给当前记录,再进行插入。 create or replace trigger getxy before inserton SDGA.报警信息 for each rowdeclare xx number:=0; yy number:=0;begin select... 阅读全文
posted @ 2010-01-11 12:07 googlegis 阅读(140) 评论(0) 推荐(0)
摘要: 一张表车辆轨迹表 四个字段 id ,x, y, 时间 , 抽取不同id中最后车辆的x,y值,即每个不同的id对应的最大时间时的x,y值 select * from 表名 a where a.时间 =(select max(b.时间) from 表名 b where a.id=b.id) 阅读全文
posted @ 2010-01-11 12:03 googlegis 阅读(136) 评论(0) 推荐(0)

坐标合肥,非典型GIS开发人员 GitHub