【发布时间】:2017-10-04 00:48:50
【问题描述】:
无效的 SQL:
SELECT
info_hash,
size,
comment,
created_by,
announce_list,
completed_by,
completed,
seeders,
leechers,
ulspeed,
dlspeed,
dateline,
thumbnail_dateline,
filename,
filesize,
visible,
attachmentid,
counter,
postid,
IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail,
thumbnail_filesize,
attachmenttype.thumbnail AS build_thumbnail,
attachmenttype.newwindow
FROM attachment
LEFT JOIN attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (-1,2)
ORDER BY attachmentid;
MySQL 错误:字段列表中的列“大小”不明确 错误号:1052
【问题讨论】:
-
你的问题是什么?
-
您可以修改您的请求以使其更易于阅读吗?我认为您不需要选择无数列来获取语法错误。
标签: mysql sql mysql-error-1052