D
D
DJDiM2021-09-12 22:49:06
MySQL
DJDiM, 2021-09-12 22:49:06

Is there a command to remove a field from a record under certain conditions?

Everything works through phpmyadmin. There is a basis with the table in which it is a lot of records. Each entry has an ID. Up to a certain point, incorrect information was entered in one of the columns, which now interferes. Is it possible to remove it with some command?
For example, table "user_data" of base "example". I need all records that have a "user_ID" field less than 6000 to have the "user_parent" field cleared in the same table.
Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-09-12
@DJDiM

UPDATE ... SET ... WHERE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question