Skip to content
Advertisement

Tag: relational

Completely arbitrary sort order in MySQL with PHP

I have a table in MySQL that I’m accessing from PHP. For example, let’s have a table named THINGS: things.ID – int primary key things.name – varchar things.owner_ID – int for joining with another table My select statement to get what I need might look like: SELECT * FROM things WHERE owner_ID = 99; Pretty straightforward. Now, I’d like users

Advertisement