Possible to edit who posted what?

Is it by any chance possible, as an administrator, to change which registered user made a post? That is, if a thread consisted of posts by A, B, C in this order, can the second post's "posted by" be changed to user D instead of B keeping the content of the post intact?

Maybe a direct database tweak?