String sql=“insert into filedata(filename,path) values(’ “+file.getName()+” ',?)”; insert字符时两边要加单引号‘’