Search Postgresql Archives

Here is my problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now i want to insert data to the table....
the format should be

id | marks
----------
1  |50
1  |30
1  |30
....
....
2 |...
....

the actual query is 

insert into table(id,marks) values(1,unnest(array[marks])) 


But we should not use array and unnest but i want in this format

pls help..



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Here-is-my-problem-tp5766954.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux