1 当使用left join左连连接,sql语句为 select t from SecondPage t left join t.rightNavbar n where 1=1 页面中出现了部分空行的情况,上述语句返回的list集合为 DataGrid dataGrid = new DataGrid(); List<SecondPage> list=secondPageDao.find(model, paging); dataGrid.setRows(list); dataGrid.setTo
DELIMITER $$ DROP PROCEDURE IF EXISTS updatePic $$ CREATE PROCEDURE updatePic() BEGIN DECLARE cover_pic VARCHAR(500); DECLARE collect_id BIGINT(20); DECLARE cur1 CURSOR FOR SELECT collect_id FROM collect WHERE IFNULL(cover_pic,'')=''; DECLARE CONTINU