0

I have to put part of url in select query like

select* 
from tbl_name 
where column_name1 like employee 
   and column_name like questions;

there is a column name col_url and in that there are many site url but i have select those url which contain particular word likewise in this url of stackflow it is questions.

How can i do this i have written query above for example purpose .

How can I create a blank/hardcoded column in a sql query?

Community
  • 1
  • 1

1 Answers1

0

I think the answer you expecting is this

SELECT * 
FROM tbl_name 
WHERE column_name1 LIKE employee 
   AND column_name LIKE questions
   AND col_url LIKE ('%select REPLACE(''col_url'',''\'','''')%')
Qirel
  • 25,449
  • 7
  • 45
  • 62
New
  • 675
  • 1
  • 11
  • 21