您现在的位置是:网站首页> 编程资料编程资料
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;
相关内容
- 用SQL语句查询数据库中某一字段下相同值的记录方法_MsSql_
- 显示同一分组中的其他元素的sql语句_MsSql_
- sqlserver存储过程语法详解_MsSql_
- SQL Server 2005降级到2000的正确操作步骤分享_MsSql_
- SQL Server 2005 数据库转 SQL Server 2000的方法小结_MsSql_
- Sql中将datetime转换成字符串的方法(CONVERT)_MsSql_
- mssql和sqlite中关于if not exists 的写法_MsSql_
- sql清空表数据后重新添加数据存储过程的示例_MsSql_
- 在SQL Server中查询资料库的TABLE数量与名称的sql语句_MsSql_
- 通过系统数据库获取用户所有数据库中的视图、表、存储过程_MsSql_
