i have 10 rows of data in my table. now i want to insert a row of data just after the 9th data and before row 10..if am not mistaken ,in mysql db this thing is possible before there’s a before and after clause, how bout in oracle ?
here’s my starting insert statement, let’s say i want to insert it after the 9th data ,how?
INSERT INTO MYTABLE (TITLE,DESCRIPTION,STATUS) VALUES ('blahblah','descriptionblah',1);
There is no inherrent order to rows in a table, and there is no guarantee a particular ordering will be preserved between selects. Consider adding a column containing the required ordering and when querying the table, order the result set by that column.
To insert a row which should appear at a particular position in the result set, ensure that the value you place in the ordering column is appropriate.