I am trying to run a query using for loop where i need to enter 50 million record and one column as fixed value and other two as incremented , i have tried using this.
FOR i IN 1..10 LOOP
INSERT INTO c
SELECT x,98,now()+ i * interval '1 minute'
FROM generate_series(1,50000000) AS x(msisdn);
It seems not working Kindly help
c? (You should usually have a list of column names, e.g.c (col1, col2, col3)). These are questions you will be asked for every post, so please edit your post to include that kind of detail. To learn more, see stackoverflow.com/tour and stackoverflow.com/help/asking