mysql - Infinidb-" `CREATE_TIMESTAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" giving error -
I am trying to port a database from mysql to infinidb. But I am getting over the error (described at the top) while porting.
`CREATE_TIMESTAMP` TIMESTAMP NULL default CURRENT_TIMESTAMP update is valid mysql to CURRENT_TIMESTAMP, but is not infinidb error: Error Code: 138 Syntax or Any help that is not supported by the data type infinidb will be appreciated.
Is this the full SQL statement you were trying to make? I was able to use:
table test (`CREATE_TIMESTAMP` TIMESTAMP tap default CURRENT_TIMESTAMP updated at CURRENT_TIMESTAMP); Here's console output
[root @ centos6 bin] # idbmysql finished with the Welcome command MySQL Monitor; Or \ g Your MySQL connection id is 12 Server version: 1.5.73 Kailpont Infinidib 4.5 Alpha Copyright (c) 2014, Infinidibi, Inc. And / or its affiliates all rights reserved. Copyright (C) 2000, 2013, Oracle and / or its affiliates protected all rights. InfiniDB InfiniDB, Inc. And / or its affiliates are a registered trademark. Oracle is a registered trademark of Oracle Corporation and / or its affiliates names may be trademarks of their respective owners. Type 'help;' Or '\ c' to clear the current input statement for help, type '\ c' mysql & gt; Use the exam; MySQL and gt; Create table test (`CREATE_TIMESTAMP` TIMESTAMP tap default CURRENT_TIMESTAMP at CURRENT_TIMESTAMP); The query is ok, affecting 0 rows (0.00 seconds) mysql & gt; Test description; + ------------------ + ----------- + ------ + ----- + ----- -------------- + ----------------------------- + | Field | Type | Faucet Key | Default | Extra | + ------------------ + ----------- + ------ + ----- + ----- -------------- + ----------------------------- + | CREATE_TIMESTAMP | Timestamp | No | | CURRENT_TIMESTAMP | CURRENT_TIMESTAMP on updates | + ------------------ + ----------- + ------ + ----- + ----- -------------- + ------------------------ + 1 set in line 0.00 seconds) mysql & Gt; I know that he does not work or you are trying a different way to syntax. What version of InfiniDB are you trying to do?
Thank you!
Comments
Post a Comment