Skip to content
Advertisement

Oracle SQL: How to fetch only style tag attributes from column?

I want to fetch only style tag attributes from a column i.e., style tag between double quotes (“). Style= can be anywhere in the column. Below is the sample data:

Expected: Output:

Tried below code:

With this I am getting double quotes also in the output. Need help on how to get only style tags without double quotes.

Thanks,
Richa

Advertisement

Answer

If you’re happy with what you got but want to get rid of double quotes, so replace them with an empty string:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement