Is it possible to use queries like given below? If there is any better way to do it please let me know.
INSERT INTO table1 VALUES (...) RETURNING id INTO t1_id;
UPDATE table2 SET column1 = value1, column2 = value2....WHERE id = t1_id;
UPDATE table3 SET column1 = value1, column2 = value2....WHERE id = t1_id;
Thanks