执行如下语句即可:
UPDATE hngsmmzt.hngs_gsmm_pt set geom=public.ST_SetSRID(public.ST_MakePoint(jd,wd),4490)
where jd is not null and wd is not null and geom is null;
用到的Postgis的函数:
- ST_MakePoint(x,y)
- ST_SetSRID(Point,srid)
来源:oschina
链接:https://my.oschina.net/boonya/blog/3168869