【问题标题】:Reverse engineer the structure of a database based on queries that are used根据使用的查询对数据库的结构进行逆向工程
【发布时间】:2015-07-05 21:05:05
【问题描述】:

我正在对 Java 代码进行逆向工程并尝试创建数据库结构。 我遇到了很多查询,例如

    select AVG(SEN.READING_SENSOR_TEMP) as AVGTEMPREAD, from sensor_readings sen

现在我对什么是 db、table 和 column 感到困惑。请帮助我理解查询。

【问题讨论】:

  • 学习 sql 可能是值得的。这将使这个项目更简单。

标签: sql hibernate jdbc


【解决方案1】:
DB: there is no name of DB
Table: sensor_readings (directly after from)
Column: READING_SENSOR_TEMP (AVG function take column as an argument) 

可能SEN 让您感到困惑。 SENalias - 您可以使用它来代替表的全名。

【讨论】:

  • 谢谢帕拉多。你是救世主。
  • @KarthikVU 很高兴能帮到你
猜你喜欢
  • 2012-10-09
  • 1970-01-01
  • 1970-01-01
  • 2017-03-29
  • 2014-09-30
  • 1970-01-01
  • 1970-01-01
  • 2022-01-20
  • 1970-01-01
相关资源
最近更新 更多