Jump to content

Referencing Other Fields in Select using Like...


drbigfresh

Recommended Posts

In the below query, how do I get MySQL to recognize 't1.word' as the same t1.word earlier in the query.... Right now it is literally trying to to look for 't1.word' in the description field and coming back with '0'

 

select t1.word, (select count(*) from feed  WHERE description LIKE "%t1.word%") as popularity from watchwords as t1

 

Thanks!

Scott.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.