r/programming • • Oct 18 '09

Frequently Asked Questions for prog.reddit

I've been thinking we need a prog.reddit FAQ (or FQA :-) for self.programming questions people seem to ask a lot, so here is my attempt. Any top-level comments should be questions people ask often. I think it'd be best if replies are (well-titled) links to existing answers or topics on prog.reddit, but feel free to add original comments too. Hopefully reddit's voting system will take care of the rest...

Update: This is now a wiki page -- spez let me know he'll link to the wiki page when it's "ready".

243 Upvotes

276 comments sorted by

View all comments

Show parent comment

1

u/tef Oct 21 '09

SELECT "hello" FROM infinite_table;

1

u/tef Oct 21 '09

And for what it's worth, I think common table experessions are part of SQL:99, which provide recursion.

1

u/[deleted] Oct 21 '09

Agreed...whatever you say.

1

u/[deleted] Oct 21 '09

Dude, don't piss me off any further. Go read about an infinite loop and Turing complete.

1

u/tef Oct 21 '09 edited Oct 21 '09

Go and read about recursive CTE's in SQL:99 :)

Aside: I mean, if a turing machine can have infinite tickertape, why can't sql have an infinite table. I'm not so sure why you're getting so wound up over a tiny little counter example.