数据库高手请救命:用ALTER语句执行出错?
set dbs=opendatabase("test.mdb")
strsql="ALTER TABLE user CHANGE common common1 DATETIME not null;"
dbs.Execute=strsql
提示:ALTER 语句语法出错??
问题点数:60、回复次数:5Top
1 楼ipman(.NET)回复于 2001-06-22 17:27:00 得分 0
最后一句写错了,下面是源码:
set dbs=opendatabase("test.mdb")
strsql="ALTER TABLE user CHANGE common common1 DATETIME not null;"
dbs.Execute strsqlTop
2 楼ltpao(啊炮)回复于 2001-06-22 17:32:00 得分 60
好象只能改变字段的数据类型或增加字段把Top
3 楼ipman(.NET)回复于 2001-06-22 17:35:00 得分 0
ALTER TABLE user CHANGE common1 common1 TEXT not null;
这句也出错,我可只改变了类型啊??Top
4 楼ltpao(啊炮)回复于 2001-06-22 17:39:00 得分 0
ALTER TABLE user ALTER COLUMN common1 TEXT(100) not null;试也试
Top
5 楼ipman(.NET)回复于 2001-06-22 17:42:00 得分 0
ltpao(啊炮):
你好厉害啊!分数全给你了
从提问到解答才30分钟,太酷了!Top




