Skip to content
Advertisement

Inserting into table1 from select table2

I have the following two tables:

Then I want to insert records from tempo into trajectory by:

  1. add 1 to user_id
  2. concaante gpsdate and gpstime fields from tempo into timestamp field in trajectory.

Query:

Error:

Data in the tempo table:

EDIT

Using , CONCAT(gpsdate | | gpstime) also generates the following error:

Advertisement

Answer

As I understand your question, you want to generate a timestamp with time zone from a date and a time. You can do this with the + operator, and additional casting:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement