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

时间:2014-05-15 20:36:45   收藏:0   阅读:434

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 语句 插入结果为select 和值混合,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!