مشکل این کوئری چیه ؟

emad.m

New Member
سلام دوستان

ممنون میشم بگید مشکل این کوئری چیه ؟
PHP:
Create table mod_mellatverification (\n\torderId Bigint NOT NULL,\n\tinvoiceid Int NOT NULL,\n\tamount Bigint NOT NULL,\n\tdate Datetime NOT NULL,\n\thashRefId Text,\n\trefId Bigint,\n\treqType Enum('Sale', 'Refund') NOT NULL DEFAULT 'Sale',\n\tstatus Enum('Verified', 'Unknown', 'Unsuccess', 'Success') NOT NULL DEFAULT 'Unknown',\n Primary Key (orderId)) ENGINE = MyISAM;

این ارور رو دریافت میکنم
PHP:
#1064 - You have an error in your SQL syntax; check the manual that  corresponds to your MySQL server version for the right syntax to use  near '\n\torderId Bigint NOT NULL,\n\tinvoiceid Int NOT NULL,\n\tamount  Bigint NOT NUL' at line 1


الته از خود phpmyadmin اقدام کردم

پیشاپیش ممنون
 

Masoud1365

مدیر انجمن
کد تصحیح شده !
PHP:
CREATE TABLE `mod_mellatverification` (
ntorderId Bigint NOT NULL ,
ntinvoiceid Int NOT NULL ,
ntamount Bigint NOT NULL ,
ntdate Datetime NOT NULL ,
nthashRefId Text,
ntrefId Bigint,
ntreqType Enum( 'Sale', 'Refund' ) NOT NULL DEFAULT 'Sale',
ntstatus Enum( 'Verified', 'Unknown', 'Unsuccess', 'Success' ) NOT NULL DEFAULT 'Unknown',
PRIMARY KEY ( ntorderId ) 
) ENGINE = MYISAM ;
 

جدیدترین ارسال ها

بالا