有没有办法在使用ASP更改Access中的主键? [英] Is there a way to change my primary key in Access using ASP?

查看:53
本文介绍了有没有办法在使用ASP更改Access中的主键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在使用ASP更改Access中的主键?


我的主键如下所示:

1101001CXR001MS01-01至1101001CXR001MS01- 24

我想将MS01更改为MS04。

Is there a way to change my primary key in Access using ASP?

My primary key looks like this:
1101001CXR001MS01-01 thru 1101001CXR001MS01-24

I want to change MS01 to MS04.

展开 | 选择 | 换行 | 行号

推荐答案

你有什么理由不能创建更新语句并执行它吗?
Is there any reason why you can''t just create an update statement and execute it?
展开 | 选择 | Wrap | 行号


获取新错误:


错误类型:

Microsoft VBScript编译(0x800A0401)

预期声明结束

/paneldatatest/indiana/fdp/movepaneldefault.asp,第65行,第18列

Getting a new error:

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/paneldatatest/indiana/fdp/movepaneldefault.asp, line 65, column 18

展开 | 选择 | Wrap | <跨度cl ass =codeLinkonclick =LineNumbers(this);>行号


@Jimqunkel,


我的不好。我在想嵌入式SQL,比如
@Jimqunkel,

My bad. I was thinking embedded SQL, like
展开 | 选择 | Wrap | 行号


这篇关于有没有办法在使用ASP更改Access中的主键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆