No such thing as a small change | |
PerlMonks |
Re^2: Help, RDBMS have taken over my brain!by Beechbone (Friar) |
on Nov 24, 2004 at 13:24 UTC ( [id://410127]=note: print w/replies, xml ) | Need Help?? |
I always wanted to code a forum that stores the bodies in a table like PartID, MessageID, ThreadID, BodyPart VARCHAR(254) so one could select a message with: SELECT BodyPart FROM Body WHERE MessageId=? ORDER BY PartID and all messages of a thread with: SELECT MessageID, BodyPart FROM Body WHERE ThreadId=? ORDER BY MessageID, PartID and get a preview of a message with: SELECT BodyPart FROM Body WHERE MessageId=? where PartID=0 Fulltext search with preview: SELECT MessageID, ThreadID, BodyPart FROM Body WHERE BodyPart LIKE '%foo%' ORDER BY MessageID or, or, or... :-) Search, Ask, Know
In Section
Meditations
|
|