Home > Blockchain >  SQL SELECT rows in a table if the given condition is a substring of the column data with a separator
SQL SELECT rows in a table if the given condition is a substring of the column data with a separator

Time:05-13

I am trying to get rows from the table Mails if the column [To] has the mail abc@mail.

The simple solution would be Select * from Mails where [To] = 'abc@mail'

But the thing is [To] column has data like 123@mail;abc@mail;aabc@mail etc separated by semicolons where To is multiple emails sent

I know I could do something like Select * from Mails where [To] like '

  • Related