Jump to content

Recommended Posts

I have this from my SAPDB database. I would like to import this to a mysql database. I dont know why this is an error

 

Any help would be much appreciated

 

Here is the table def.

 

CREATE TABLE "DBM350_WRNB"

(

"FAXNUMBER"              Varchar (40) UNICODE,

UNIQUE("FAXNUMBER"),

"FORBIDDEN"              Integer,

"LASTSTATUS"              Varchar (100) UNICODE,

"REASON"              Integer,

"RETRY"              Integer,

"RETRYDIALED"              Integer,

"SECONDSTOWAIT"              Integer,

"NEXTVALIDDATETIME"              Timestamp,

"LASTTRYDATETIME"              Timestamp,

"COMMENT"              Varchar (100) UNICODE,

"LONGSTATUS"              Varchar (100) UNICODE,

"STATUSCODE"              Integer,

"DIST_NUM"              Integer,

"DIST_LASTWRITE"              Timestamp,

"MSN"              Fixed (10,0)    NOT NULL    DEFAULT SERIAL (1),

"DIST_OWNER"              Varchar (64) UNICODE,

"PRIORITY"              Integer    DEFAULT          0,

"DIST_FILE"              LONGBLOB,

PRIMARY KEY ("MSN")

)

 

here is the error

 

#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 'SERIAL (1),

    "DIST_OWNER"              Varchar (64) UNICODE,

    "PRIORITY"    ' at line 18

 

Link to comment
https://forums.phpfreaks.com/topic/85999-importing-from-sapdb-743-to-mysql-50/
Share on other sites

I don't know what you're trying to do with "SERIAL (1)" but that's not valid. You can use "DEFAULT 0" instead there.

 

You'll have a problem with "UNICODE" too.

 

Look at create table syntax:

http://dev.mysql.com/doc/refman/5.0/en/create-table.html

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.