This question is about MySQL Query. I have three tables:
- brand (consists of: text)
- englishkeyword (consists of ID, word)
- englishkeywordmodel (consists of: ID, score)
I want to count how many words in 'text' with the word which is already determined in 'word'. Then the result is stored in 'score'. This is my code:
UPDATE englishkeywordmodel
SET score=(SELECT COUNT(*)FROM brand WHERE text LIKE (SELECT word FROM englishkeyword WHERE ID=2 LIKE ('%', word, '%')))
WHERE ID=2;
I got this error:
1241 - Operand should contain 1 column(s)
I say many thanks for answer!