Hi, I have the following statement in a SP :-
When I try and save the SP I get an 'expected token: Order' error. If I remove the 'order by' clause it is fine. What am I doing wrong? Regards Mike |
I am assuming that ORDER BY is not supported with INSERT INTO so I did a work around using a temporary table and SELECT INTO instead. @Mike you are correct. An Order By is not valid syntax for an INSERT statement.
(10 Sep '14, 07:30)
Edgar Sherman
|