我们有时候在写Insert语句的时候会遇到values里面的个别列的值需要从别的表中查询获取,这时候SQL语句需要使用向表中插入多条数据的写法: INSERT INTO LoginRecordInfoes select( select Email from Users WHERE UserName='dddd'),'2017-08-03 13:47:25.977','::1','uuuuu' UNION SELECT ','test' 其中,select Email from Users WH…