M
M
Matvey Kremnin2021-11-21 13:44:03
Drupal
Matvey Kremnin, 2021-11-21 13:44:03

How do I add my own attribute names to a column?

I have a column - Attributes where their names are stored and there is an Attribute Value column where their values ​​are stored.
I have to add my third-party names to the Attributes column, and let the values ​​​​of these attributes be null.
Those attribute names are fictitious, they cannot be pulled out of a third-party table.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2021-11-21
@idShura

I didn’t quite understand the question, new “attributes” can be added to the table like this:

INSERT INTO table_name (attribute_name, attribute_value) VALUES ('new_attribute_name', null);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question