Jesus died at 33, so that can’t get returned in the query response lol

You are viewing a single thread.
View all comments View context
13 points
*

It’s a mess compared to the equivalent SQL.

SELECT *
FROM users
WHERE age >= 25 AND age <= 30

I dislike SQL syntax more than most, and even I concede that SQL wins in this instance.

Edit: Not sure if this appears on all clients but the < in the code block is meant to be a less-than symbol.

permalink
report
parent
reply
5 points

There is no way I would ever get the amount of brackets right on that.

permalink
report
parent
reply

SQL - any and all

!sql@lemmy.world

Create post

For discussion about SQL and databases. All versions welcome.

  • MSSQL
  • PostgreSQL
  • MariaDB
  • SQLite
  • etc…

Community stats

  • 1

    Monthly active users

  • 13

    Posts

  • 55

    Comments

Community moderators