J
J
Jeracsus2020-07-04 12:49:59
MySQL
Jeracsus, 2020-07-04 12:49:59

How to merge columns?

spoiler
5f005095ca954831753671.png

You need to merge into a date column, then delete data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentyn, 2020-07-04
@Jeracsus

Copy data to date field Delete data column:
UPDATE tbl_name SET date = data WHERE date IS NULL
ALTER TABLE tbl_name DROP COLUMN data;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question