sql 语句插入结果为select和值混合示例

前端之家收集整理的这篇文章主要介绍了sql 语句插入结果为select和值混合示例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

<div class="codetitle"><a style="CURSOR: pointer" data="67988" class="copybut" id="copybut67988" onclick="doCopy('code67988')"> 代码如下:

<div class="codebody" id="code67988">
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;

原文链接:https://www.f2er.com/mssql/63273.html

猜你在找的MsSQL相关文章