Question

How do I select all records that contain "LCS" within the title column in sql.

Was it helpful?

Solution

SELECT * FROM TABLE WHERE TABLE.TITLE LIKE '%LCS%';

% is the wild card matcher.

OTHER TIPS

Look into the LIKE clause

Are you looking for all the tables with a column name which contains the LCS in them? If yes the do this

select table_name 
from information_schema.columns 
where column_name like '%lcs%'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top