M
M
matros972021-02-14 09:51:38
SQL
matros97, 2021-02-14 09:51:38

Request to update table?

Hello, tell me how to write a query so that it would be possible to delete some data in the table, here is an example

[:UA]NEWS[:RU]NEWS[:EN]NEWS[:]

The test between shortcodes can be different, somehow I need to delete it so that only NEW is left, that is, the text between
[:UA]NEW[:RU]

Is it possible to make a query like this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-02-14
@Rsa97

In MySQL it is possible via REGEXP_SUBSTR .
But in general, this storage format creates a lot of problems. Change to a normal table (string_id, language_id, string).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question