使用 cfm 文件在 ms-access 中创建表
我在 msaccess 中手动创建了一个表,其中包含以下详细信息 表名称 - “选项” 选项 ID 自动编号 产品编号 选项名称文本 排序号码 optionprice NUMBER
现在我希望我的 cfm 文件运行以下查询,以便创建表,但我收到数据库错误
CREATE TABLE options
(
optionid INTEGER AUTOINCREMENT,
productid INTEGER,
optionname VARCHAR(255),
sortid INTEGER,
optionprice INTEGER
);
i created a table in msaccess manually with following details
table name - "options"
optionid AUTONUMBER
productid NUMBER
optionname TEXT
sortid NUMBER
optionprice NUMBER
Now i want my cfm file to run the following query so that table get created but iam getting database error
CREATE TABLE options
(
optionid INTEGER AUTOINCREMENT,
productid INTEGER,
optionname VARCHAR(255),
sortid INTEGER,
optionprice INTEGER
);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试遵循与手动创建表时相同的规则:
Did you try following the same rules as when you create the table manually: