-1

私はこのクエリを持っています:

SELECT (
  *)
   ,
  MATCH(table1.tags,table1.title,table1.description) AGAINST ('".$keywords."' IN BOOLEAN MODE) AS ideas_score 
  FROM table1  JOIN table2 ON table1.id_user = table2.id  HAVING ideas_score > 0 
  ORDER BY ideas_score DESC;

なぜ私がこれを行うとうまくいかないのですか?

SELECT (
   table1.description,
 table1.title,
   table1.id,
   table1.id_user,
   table1.tags,
   table1.insert_datetime,
   table2.fb_id,
   table2.fb_aliasname,
   table2.firstname,
   table2.lastname)
   ,
  MATCH(table1.tags,table1.title,table1.description) AGAINST ('".$keywords."' IN BOOLEAN MODE) AS ideas_score 
  FROM table1  JOIN table2 ON table1.id_user = table2.id  HAVING ideas_score > 0 
  ORDER BY ideas_score DESC;

私はいつもこのエラーを受け取ります:

Error Number: 1241

Operand should contain 1 column(s)
4

1 に答える 1

-1

OMGすみません、SELECTが必要ないことに気づきました()

于 2012-09-16T13:00:55.530 に答える