您现在的位置是:网站首页> 编程资料编程资料

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

2023-05-26 423人已围观

简介 sql 语句插入结果为select和值混合示例_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;

-六神源码网