• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

why are there so many smart-a$$ geeks?

ndee

Lifer
<ndee> hi there, I have a table with 50'000 entries and I wanna order it by a column. How can I do that? I know with SELECT * FROM tbl ORDER BY FIELD, but how can I make that change permanent in the database itself?
<georg_> ndee: databse doesn't sore rows in an order.
<john> BUT BUT WHEN I USE PHPMADMIN !!!
<georg_> muaahhh 🙂
<Boltsky> alter table tbl order by field;
<Boltsky> but it'll get messed up whenever you insert/delete rows
<ndee> georg_: but when I make a SELECT statement, it always gives me the same order.
<ndee> georg_: so it needs to have an order, no?
<georg_> ndee: When you don't delete or update any row this should be the order from insert
<ndee> georg_: yeah, so it does have an order.
<georg_> ndee: so where is your problem?
<ndee> georg_: ndee: databse doesn't sore rows in an order.
<georg_> yup, this means not in an alphabetical or numerical order

So the thing that Boltsky wrote worked actually.
 
It was an IRC channel 🙂 It would have been ok if they just told me RTFM, which is actually true. Just thought I would ask real quick in an IRC Channel.
 
Back
Top