开发者

create table in ms-access using cfm file

开发者 https://www.devze.com 2023-04-04 17:58 出处:网络
i created a table in msaccess manually with following details table name - \"options\" optionid AUTONUMBER

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 TAB开发者_开发百科LE options
(
    optionid INTEGER AUTOINCREMENT,
    productid INTEGER,
    optionname VARCHAR(255),
    sortid INTEGER,
    optionprice INTEGER
);


Did you try following the same rules as when you create the table manually:

CREATE TABLE options
(
    optionid NUMBER AUTONUMBER,
    productid NUMBER,
    optionname TEXT,
    sortid NUMBER,
    optionprice NUMBER 
);
0

精彩评论

暂无评论...
验证码 换一张
取 消