INSERT INTO tch_type_info SELECT '118','1','1',(select max(weight)+1 from tch_type_info where typeId='1' group by typeId),'1',SYSDATE() FROM DUAL WHERE (select count(1) from tch_type_info where typeId='' and userId='')=0