Find column that contains a given value in MySQL

前端 未结 3 1367
太阳男子
太阳男子 2021-01-26 19:10

I have a table in a MySQL database. I am given a value that occurs as a cell value in that table but I do not know which cell is it i.e. the row and column of that cell. What is

3条回答
  •  借酒劲吻你
    2021-01-26 19:52

    You're designing this table with repeating groups, which is not satisfying First Normal Form.

    You should create a second table and store the values for column1, column2, and column2 in a single column, on three rows.

    Learn about the rules of database normalization for more details.

提交回复
热议问题