sundance1980
MIS
Hello. I was asked to create a second knowledge base which pretty much consists of articles (id title description and the post). I am now have to make another one for restricted users. How would I change my sql to search both of these databases?
The first database is called 'article'. I have a second database called 'informationtech'.
Would I add 'AS score FROM article AND informationtech'?
"SELECT id,title,description,DATE_FORMAT(date,'%M %D, %Y') AS date,post, match(title, description) AGAINST ('$search_value' IN BOOLEAN MODE) AS score FROM article where match(title, description) against('$search_value' IN BOOLEAN MODE) ORDER BY score DESC"
Thanks much.,
The first database is called 'article'. I have a second database called 'informationtech'.
Would I add 'AS score FROM article AND informationtech'?
"SELECT id,title,description,DATE_FORMAT(date,'%M %D, %Y') AS date,post, match(title, description) AGAINST ('$search_value' IN BOOLEAN MODE) AS score FROM article where match(title, description) against('$search_value' IN BOOLEAN MODE) ORDER BY score DESC"
Thanks much.,