merge into when matched then... when not mached then... merge into t_road_pre_parameter a from dual ) b on (a.TIME_SEGMENT=? and a.ROAD_ID=? and a.RS_INDEX=? and a.FLAG=) when matched then update set a.week_num=?, a.temperature = ?, a.if_rain…
从外部EXCEl文件导入sqlserver数据库操作命令 reconfigure reconfigure go select * into abc1_1 from OPENROWSET('MICROSOFT.JET.OLEDB.4.0' ,'Excel 5.0;HDR=YES;DATABASE=文件路径',SQLResults$) 注意:文件路径到excel下某个固定的sheet,sheet名字不要有空格 数据库合并 insert into [新数据库名(合并后的)] select [字段] F…