大家好,这是我的第一个问题,所以对我很轻松 - 需要一些帮助来提取一些数据.
这是我正在使用的两个表:查询表:
+---------------------------------------------------------------------+
| ID (Primary Key) | Author | threadid | created | Comments |
+---------------------------------------------------------------------+
| 1 | C | 237 | 2016-07-24 | Hi there... |
| 2 | T | 421 | 2015-06-07 | Hello, .. |
| 3 | C | 421 | 2015-06-08 | Hi,... |
| 4 | C | 327 | 2017-03-13 | Hey there.. |
+---------------------------------------------------------------------+
Run Code Online (Sandbox Code Playgroud)
T代表公司向客户发送询问,C代表客户向公司发送询问.
Enquirythreads表:
+----------------------------------+
| ID (Primary Key) | created |
+----------------------------------+
| 421 …Run Code Online (Sandbox Code Playgroud)