|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Running select and insert in same statement
H Guys
Sorry, newbie question, but i assume it is possible to run a select and then populate outcomes to an another table in the same SQL statement. I would like to run a select to a table, then insert whole data results into an other table. Can someone help and point to the right syntax ? cheers /Kristoff |
|
#2
|
||||
|
||||
|
You'll have to use INSERT ... SELECT ... (here )
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#3
|
|||
|
|||
|
Thanks all. Found the trick.
|
![]() |
| Viewing: Dev Shed Forums > Databases > PostgreSQL Help > Running select and insert in same statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|