sql 声明 将结果select 而混合值
2015-10-12 09:16
405 查看
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;
String insertsql="insert into Test_Paper_Record (t_pid,userId,answer,score,mark,markerId,examid )"+slctpsql;
相关文章推荐
- Oracle监听配置详解
- MySQL EXPLAIN SQL 输出信息描述
- onthink 数据库连接配置
- 数据库中的事务
- mysql笔记
- SQL必知必会——分组
- Mysql 常用函数
- Mysql alter procedure name
- mongodb logRotate 定期…
- Mongodb shard 索引
- linux mongodb driver&n…
- js 操作mongodb
- mongodb java 多线程执行
- mongodb shard 分片
- mongodb 权限管理
- mongodb mapReduce实例
- mongodb replset 成员类型
- mongodb timestamp 处理
- mongodb 模糊查询
- 编译MongoDB 及驱动