查询表信息插入另一张表

Insert into data_dictionary(GMT_CREATED,GMT_MODIFIED,GROUP_NAME,KEY_NAME,KEY_VALUE) 
(
	select 
	    CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,'SYNCEXAMREPORTGROUPNAME','EXAMREPORTID',report_id 
	from report_baseinfo 
	where exam_company='XXX有限公司'
);

猜你喜欢

转载自blog.csdn.net/sqylqq/article/details/110138056
今日推荐