我是mysql新手,請幫我做這個表。創建表時mysql錯誤
CREATE TABLE `jjsaar`.`dd_chq` (
`reg_id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`receipt_no` INTEGER UNSIGNED NOT NULL,
`name` VARCHAR NOT NULL,
`add` VARCHAR NOT NULL,
`phone_no` VARCHAR NOT NULL,
`purpose` VARCHAR NOT NULL,
`pay_method` VARCHAR NOT NULL,
`amount` INTEGER UNSIGNED NOT NULL,
`dd_chq_no` VARCHAR NOT NULL,
`bank_details` VARCHAR NOT NULL,
`timestamp` TIMESTAMP NOT NULL,
PRIMARY KEY (`reg_id`)
)
ENGINE = InnoDB;
當您添加有關錯誤的問題時,請提供* full *錯誤。 – Dancrumb
給varchar限制像varchar(20) – Dhinakar