I'm using MySQL v5.0.45 and trying to delete the nth row in a table irrespective of its ID number. I set up a prototype in PHP before integrating it into my web development project where I set up the following in my database:
CREATE TABLE prototype_1 (id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name varchar(30));
INSERT INTO prototype_1 (name) VALUES ('A');
INSERT INTO prototype_1 (name) VALUES ('B');
INSERT INTO prototype_1 (name) VALUES ('C');
Simple enough! Now I tried using 'LIMIT' but I get the following error:
"ERROR 1235 (42000): This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'"
Now I understand you cannot use LIMIT in subqueries, however, is there not some sort of work around?
I can select the nth row and display it nicely with the following:
SELECT * FROM prototype_1 LIMIT 1,1;
Thus returning 'B' but why cannot I delete!?