Skip to main content

Recent Activity

Recent Heroes of the BenNadel.com Community

Recent Comments

Chris G replied to a post Using Row Constructor Comparisons In MySQL

@Ben Nadel, Interesting. I didn't really understand how this could be helpful in pagination, so I consulted the Oracle (ChatGPT) and learned that it would be useful when paginating a filtered or sorted list. No that's interesting! Here's some use cases it came back with... Row constructor comparison... read entire comment from Chris G.

Ben Nadel replied to a post Using Row Constructor Comparisons In MySQL

@Chris, I'm in the same boat—interesting, but not sure how I would actually use something like this. In the video course, he did talk about it in the context of paginating through a table using multiple columns as the "cursor". Basically, doing a >= comparison on several columns and then combining t... read entire comment from Ben Nadel.

Ben Nadel replied to a post Using Row Constructor Comparisons In MySQL

One more fast-follow comment, apparently you can use this in row subqueries as well. That is, you can have a subquery that returns multiple columns and then you can compare those multiple columns to another row constructor: FROM test WHERE ( a, b, c ) = ( SELECT 2, -- a 2, -- b 2 -- c... read entire comment from Ben Nadel.

Ben Nadel replied to a post Using Row Constructor Comparisons In MySQL

As a fast-follow here, given the fact that this syntax is called the "row constructor", I started to wonder if it has any relation to the ROW() function I used in the derived table. As an experiment, I tried rewriting my WHERE clause as such: WHERE ROW( a, b, c ) >= ROW( 2, 2, 2 ) AND ROW( a, b, c... read entire comment from Ben Nadel.

Chris G replied to a post Mastering Postgres Video Course By Aaron Francis

We moved from Oracle to Postgres at my previous job and I found it to be (mostly) painless. There were a couple things I found super frustrating though. Off the top of my mind... You couldn't reliably use simple comparison operators (==, !=) when comparing one string to the other. In some cases, we ... read entire comment from Chris G.

Cutter replied to a post Formatting Dates In The Local Timezone With Alpine.js

@Ben Nadel, Yeah, some of my examples there are bad, only because the Temporal.ZonedDateTime.toLocaleString() is a wrapper around Intl.DateTimeFormat() (something I discovered after that preso). But loving that this stuff is now becoming browser native. For base formatting today the Intl.DateTimeFor... read entire comment from Cutter.

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel