今天修改别人的代码时发现这样的hql语句(hibernate )
StringBuffersql=newStringBuffer("select*fromT_Xtzd_zhbzxtwherext.deletedFlag="+CssCon...
StringBuffer sql = new StringBuffer("select * from T_Xtzd_zhbz xt where xt.deletedFlag = " + CssConst.NOTDELETED);
sql.append(" START WITH xt.sjzd is null and xt.xtzdk = '"+CssConst.XTZDK_WZFL+"' CONNECT BY Prior xt.xtzdid = xt.sjzd order by xt.zdpx ");
ResultSet rs = executeJdbcQuery(sql.toString());
没看懂,有知道的大神给小弟解释下这个查询语句的意思,(START WITH,CONNECT BY Prior都没见过,啥意思啊)叩谢!叩谢!叩谢! 展开
sql.append(" START WITH xt.sjzd is null and xt.xtzdk = '"+CssConst.XTZDK_WZFL+"' CONNECT BY Prior xt.xtzdid = xt.sjzd order by xt.zdpx ");
ResultSet rs = executeJdbcQuery(sql.toString());
没看懂,有知道的大神给小弟解释下这个查询语句的意思,(START WITH,CONNECT BY Prior都没见过,啥意思啊)叩谢!叩谢!叩谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询