這是我的數據庫架構:爲什麼我得到這個奇怪的結果:[BLOB - ...]?
Post:
id
title
body
date
Tag:
id
title
Post_Tag:
id
id_post
id_tag
Comment:
id
id_post
body
date
,這是我的查詢:
SELECT
Post.id AS post_id,
Post.title AS post_title,
Post.body AS post_body,
GROUP_CONCAT(CONCAT(Tag.id, "|", Tag.title) SEPARATOR '#') AS tags,
COUNT(Comment.id) AS comment_count
FROM Post
LEFT JOIN Comment ON Post.id = Comment.id_post
LEFT JOIN Post_Tag ON Post.id = Post_Tag.id_post
LEFT JOIN Tag ON Tag.id = Post_Tag.id_tag
GROUP BY Post.id
ORDER BY Post.date ASC
有人能告訴我爲什麼我收到這些奇怪的結果([BLOB - ...])以下標籤列?
id title body tags comment_count
1 hello guys blablabla... [BLOB - 8B] 8
2 hello all blablabla... [BLOB - 14B] 3
3 how to tell blablabla... [BLOB - 8B] 5
4 hello world blablabla... [BLOB - 5B] 7
http://dev.mysql.com/doc/refman/5.0/en/blob.html – RRikesh
確定,但我怎麼能得到正確的結果:)? – user2393238