获取以条目字符串开头的列表,然后给出mysql数据库中可用的所有结果

时间:2016-10-21 10:26:38

标签: java mysql hibernate

听到我给表,我希望列表哪个雕像以一个入口行可用后的入口开始,其余列表返回.......

id  did      date         statues
35  853 10/21/2016 0:09     trip
38  853 10/21/2016 0:48     Entry
39  853 10/21/2016 1:00     Exit
41  853 10/21/2016 1:48     trip
42  853 10/21/2016 2:10     Entry
43  853 10/21/2016 2:22     Exit
46  853 10/21/2016 3:16     trip
47  853 10/21/2016 3:55     Entry
49  853 10/21/2016 4:08     Exit
52  853 10/21/2016 5:16     trip
53  853 10/21/2016 5:41     Entry
54  853 10/21/2016 5:54     Exit
56  853 10/21/2016 7:09     trip
57  853 10/21/2016 9:21     Entry
59  853 10/21/2016 9:32     Exit
61  853 10/21/2016 10:24    trip
62  853 10/21/2016 10:46    Entry
64  853 10/21/2016 11:01    Exit
67  853 10/21/2016 11:51    trip
68  853 10/21/2016 12:21    Entry

1 个答案:

答案 0 :(得分:0)

从table_name中选择*,其中id>(从table_name中选择min(id),其中的状态如'%entry%');