select max(fsid) from TbFunctionSon tb group by tb.tbFunctionFather
我认为应该这样写 select max(fsid) from TbFunctionSon tb group by tb.tbFunctionFather
select max(tb.fsid),tb.tbFunctionFather from TbFunctionSon tb group by tb.tbFunctionFather
select max(fsid) from TbFunctionSon group by tbFunctionFather
select max(fsid) from com.zycloud.model.TbFunctionSon group by tbFunctionFather 报什么错,fsid,tbFunctionFather 为字段,这样写实没有问题的
其实楼主写的并没错,建议这样写:select max(fsid)TbFunctionSon group by tbFunctionFather 或者 select max(tf.fsid)TbFunctionSon tf group by tf.tbFunctionFather 要保证表名和字段名与实体类名和实体类中对应字段名一样(包括大小写)。 应该没什么问题,如还有问题,把报的错误信息贴出来大家分析一下。 祝你好运咯!
补充一下,刚才着急忽略一点:建议这样写:select max(fsid)from TbFunctionSon group by tbFunctionFather 或者 select max(tf.fsid)from TbFunctionSon tf group by tf.tbFunctionFather 忘写from了。祝你好运!
报什么错,fsid,tbFunctionFather 为字段,这样写实没有问题的
select max(tf.fsid)TbFunctionSon tf group by tf.tbFunctionFather
要保证表名和字段名与实体类名和实体类中对应字段名一样(包括大小写)。
应该没什么问题,如还有问题,把报的错误信息贴出来大家分析一下。
祝你好运咯!
select max(tf.fsid)from TbFunctionSon tf group by tf.tbFunctionFather
忘写from了。祝你好运!