![](/img/trans.png)
[英]Syntax Error in Create Table Statement in MS Access but not in phpmyadmin
[英]MS Access 2013 syntax error in create table statement
這不會運行。 有誰知道為什么?
Create Table Customer
(CustomerID Number(15,0) AutoIncrement Not Null,
Name Varchar(40) Not Null,
Phone Varchar(20),
Email Varchar(40) Not Null,
Primary Key(CustomerID)
)
刪除Number(15, 0)
段:
Create Table Customer
(
CustomerID AutoIncrement Not Null,
Name Varchar(40) Not Null,
Phone Varchar(20),
Email Varchar(40) Not Null,
Primary Key(CustomerID)
)
也許像這樣?
CurrentDb.Execute "Create Table Customer" & _
"(CustomerID AUTOINCREMENT PRIMARY KEY NOT NULL ," & _
"Name Varchar(40) Not Null," & _
"Phone Varchar(20)," & _
"Email Varchar(40) Not Null)"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.