Skip to main content
spelling
Source Link
jjanes
  • 41.3k
  • 3
  • 40
  • 54

You have to put the literal strings in the right stopspot. You have them as part of the FROM clause, which doesn't make sense. Put them in the select-list.

insert into locations (geom,type,label,user) select 
    st_makeline(a.geom,b.geom) as line, 'Link','test','ADMIN'
from (select * from locations where id = 144) as a, 
     (select * from locations where id = 145) as b;

You have to put the literal strings in the right stop. You have them as part of the FROM clause, which doesn't make sense. Put them in the select-list.

insert into locations (geom,type,label,user) select 
    st_makeline(a.geom,b.geom) as line, 'Link','test','ADMIN'
from (select * from locations where id = 144) as a, 
     (select * from locations where id = 145) as b;

You have to put the literal strings in the right spot. You have them as part of the FROM clause, which doesn't make sense. Put them in the select-list.

insert into locations (geom,type,label,user) select 
    st_makeline(a.geom,b.geom) as line, 'Link','test','ADMIN'
from (select * from locations where id = 144) as a, 
     (select * from locations where id = 145) as b;
Source Link
jjanes
  • 41.3k
  • 3
  • 40
  • 54

You have to put the literal strings in the right stop. You have them as part of the FROM clause, which doesn't make sense. Put them in the select-list.

insert into locations (geom,type,label,user) select 
    st_makeline(a.geom,b.geom) as line, 'Link','test','ADMIN'
from (select * from locations where id = 144) as a, 
     (select * from locations where id = 145) as b;