If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
and how does a sql server documentation page help this particular mysql scenario?
george is right, skl25, you'll need to use a mysql user variable
It was just to show him how such queries work - I had no desire to do his homework for him. I will admit that I'd forgotten that MySQL won't allow a correlated query within a delete - shame as most other RDBMs do. I still wouldn't use variables though (I'd go for a temp table) or are you aiming for a NZDF style solution.