具有一个包含包含以下内容的表的数据库:
rangeA
------------------------|
[400,800] |
[350,2000] |
[400,800] |
[400,800] |
[400,800] |
[400,800] |
[400,800] |
[400,800] |
[400,800] |
[400,800] |
您将如何将该列删除到[[each表中,并替换为:
lower|upper|
-----|-----|
400| 800|
350| 2000|
400| 800|
400| 800|
400| 800|
400| 800|
400| 800|
400| 800|
400| 800|
400| 800|
我已经成功地通过:]检索了列名和表名。
select column_name, table_name from DATABASE.information_schema.columns where MYCONDITION) -- The condition is well chosen to retrieve only the column with the range
当然,当检索到行时,可以使用函数lower
和upper
来检索边界具有一个包含表的数据库,该表包含:rangeA ------------------------ | [400,800] | [350,2000] | [400,800] | [400,800] | [400,800] ...