Answer the question
In order to leave comments, you need to log in
Select in the middle of an INSERT query?
Good morning.
Wrote sql request but does not plow.
INSERT INTO `tab`(`order`,`type`) VALUES ((SELECT count(*) FROM `tab` WHERE `type`=1)+1,1)
#1093 - It is not allowed to specify the table 'tab' in the list of tables FROM to make changes to itBut why?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question