MySQL insert at end of table
Posted
by Theopile
on Stack Overflow
See other posts from Stack Overflow
or by Theopile
Published on 2010-05-24T16:25:23Z
Indexed on
2010/05/24
16:31 UTC
Read the original article
Hit count: 261
Hello, I am using MySQL and PHP. I am having a problem with inserting a new item at the end of my table. When I insert the new item appears after the last created item, but I want it to be entered at the bottom of the table. Suppose that I have a table id=int,Primary Key and album=string and the table is:
- Wrath
- Crack The Skye
- Enter Shikari
What would the MySQL query be if php variable $album=myAlbum was to be inserted next, at the end of the table, and with the appropriate id? Thanks
© Stack Overflow or respective owner