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

复制代码 代码如下:

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;

原创文章,作者:carmelaweatherly,如若转载,请注明出处:https://blog.ytso.com/tech/database/234716.html

(0)
上一篇 2022年1月23日 21:48
下一篇 2022年1月23日 21:48

相关推荐

发表回复

登录后才能评论