Reputation: 23
I have a Table with 5 Columns, (title, hash, story, source, time, url)...
I want that "url" is the first column... How can I do that - that the table look like
(url, title, hash, story, source, time)
Upvotes: 1
Views: 53
Reputation: 41
Use this query,
ALTER TABLE tbl_name CHANGE url url VARCHAR(100) NOT NULL FIRST;
or
ALTER TABLE tbl_name MODIFY url VARCHAR(100) FIRST;
Upvotes: 1
Reputation: 568
Are you using phpMyAdmin? If so there's a button called "Move Columns" in the interface
Upvotes: 0