sql 语句插入结果为select和值混合示例
时间:2021-04-23 09:28:22|栏目:MsSql|点击: 次
复制代码 代码如下:
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" and baseTestType=1) and paperId="+paperbaseinfo.getId();
String insertsql="insert into Test_Paper_Record (t_pid,userId,answer,score,mark,markerId,examid )"+slctpsql;
上一篇:SQL Server 监控磁盘IO错误,msdb.dbo.suspect_pages
栏 目:MsSql
下一篇:Sql学习第四天――SQL 关于with cube,with rollup和grouping解释及演示
本文地址:http://www.codeinn.net/misctech/106986.html