jsp 更新 access 倒数第二条记录中某字段的问题
access数据库如下:
字段a 字段b 字段c
4 1 3
5 6 2
8 2 8
4 3 =?
字段C的值=上一个c的值+最后a的值-最后b的值
例如 3+5-6=2
2+8-2=8
最后一个c=8+4-3
用jsp 语句 如何更新呢?
在access测试通过了查询语句:
SELECT TOP 1 (SELECT TOP 1 a-b from test ORDER BY id DESC)+
(SELECT TOP 1 e from test WHERE id in(select top 2 id from test order by id desc))
from test
ORDER BY id DESC;
但在jsp里怎么就不行呢?
可以具体列出来一下吗? 谢了
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为空值, ......
新手:
tomcat+struts 2.0
jsp 页面直接关联model
现在需要根据model(admin)里面的一个item(id),判断jsp页面出现的内容.
大概流程:
...
<table>
<tr>
<td>
<s:if admin.id is null> ......
HTML code:
<%@ page language="java" import="java.util.*,com.test.model.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePa ......
各位高手好,麻烦帮我看下这个数据库连接问题:
做了一个BBS但是数据库就是连接不上。错误代码如下
HTTP Status 500 -
------------------------------------------------------------------------------- ......