News for hackers. Stuff that matters.
Re:I don't need your query language by XorNot on Saturday June 17, 2023 @07:09AM (#36369110)
FROM users SELECT name, id, location WHERE name LIKE 'a%';

You know I think you're right.

Re:I don't need your query language by ellisv on Saturday June 17, 2023 @07:23AM (#36369225)
Eh. I’m not convinced by this. I may know what I want to query as often or more than knowing where it comes from.

I suppose it could be nice if the user could specify clauses in an arbitrary order but it’d certainly add complexity.

I don’t find it difficult to jump around a bit from clause to clause while writing a query. In fact, it’s incredibly rare to write a query straight through and have it do what you want it to do.

Re:I don't need your query language by frogulis on Saturday June 17, 2023 @07:16AM (#36369162)
Go further: `FROM users WHERE name LIKE 'a%' SELECT name, id, location` - after all, you can WHERE on things that aren't projected by SELECT
Re:I don't need your query language by 6510 on Saturday June 17, 2023 @10:47AM (#36370640)
A human would grab the paper with the right table on it then search for the row he wants with his finger and finally gets the phone number from the row.
Re:I don't need your query language by user3939382 on Saturday June 17, 2023 @07:16AM (#36369166)
There was an article on HN about this maybe 6 months ago. I’m in agreement.
Re:I don't need your query language by 6510 on Saturday June 17, 2023 @07:27AM (#36369259)
O well, if we are going to be like that?:

FROM users WHERE name LIKE 'a%' SELECT name, id, location

(I should refresh the page before posting)

Re:I don't need your query language by blipvert on Saturday June 17, 2023 @10:51AM (#36370682)
I might be wrong, but there’s nothing to stop a front end UI from accepting this syntax and then writing out canonical SQL to do the actual query, is there?
Re:I don't need your query language by valenterry on Saturday June 17, 2023 @01:45PM (#36372489)
Exactly, it puzzles me that tooling doesn't do that...