|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Insert syntax error
ok, this is the query...
INSERT INTO header (parent,title,posted,id_usuario,parentPosterID,ori gen,tema) VALUES(71,'este es el titulo',now(),1, (SELECT parentPosterID FROM header WHERE postid=71),1,'este es el mensaje'); the problem is with the select subquery Can any body tell me what is missing for it to run correctly??? |
|
#2
|
|||
|
|||
|
Try
INSERT INTO header (parent,title,posted,id_usuario,parentPosterID,ori gen,tema) SELECT 71,'este es el titulo',now(),1, parentPosterID,1,'este es el mensaje' FROM header WHERE postid=71 |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Insert syntax error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|