dbTalk Databases Forums  

insert multiple value

comp.database.oracle comp.database.oracle


Discuss insert multiple value in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Marc Collin
 
Posts: n/a

Default insert multiple value - 02-21-2004 , 08:41 PM






hi

is it possible to do add the value returned by a requery in a field?

--create another field
alter table postes
add nblog integer

i would like to do something like

insert into postes(nblog)
select count (pos_n_poste)
from installers
where installers.pos_n_poste = postes.n_poste

is it possible?
--
Borland rulez http://pages.infinit.net/borland

Reply With Quote
  #2  
Old   
VS
 
Posts: n/a

Default Re: insert multiple value - 02-22-2004 , 09:28 PM






Try UPDATE instead of INSERT

"Marc Collin" <os2 (AT) videotron (DOT) ca> wrote

Quote:
hi

is it possible to do add the value returned by a requery in a field?

--create another field
alter table postes
add nblog integer

i would like to do something like

insert into postes(nblog)
select count (pos_n_poste)
from installers
where installers.pos_n_poste = postes.n_poste

is it possible?
--
Borland rulez http://pages.infinit.net/borland



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.