Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
quickthrower2
· 4y ago · 0 comments
SELECT is a bit like return?
return 6;
or
return x++;
or even
return (exit(0));
Comments
[–]
colejohnson66
4y ago
I think GP is saying they view SELECT as a "pure" function. A pure function doesn't modify state, so neither should SELECT.
[–]
bombcar
4y ago
Yeah, from limited experience with SQL "SELECT is safe" (assuming no weirdness in sub functions or commands) but that's clearly not always the case.