If you're in his service decided to implement the search, it is extremely not advised. Yuzay better Sphinx. But if we are really priperlo, you have to fence a Bicycle for a specific DBMS. Get the list of tables, go for it cycle, get in each list of columns, etc. Is slow and not universal.