MySQL Forums
Forum List  »  Newbie

Error 1064 message
Posted by: Bernd Hille
Date: December 12, 2016 09:44AM

Dear folks!

I want to use the Canzeley programm. If I type in wind0ws command line:
----------------------
C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin>mysql -u canzeley -p -h 127.0.
0.1 < canzeley_050.sql
----------------------

then comes the following error message:
----------------------
ERROR 1064 (42000) at line 274: 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 'NOT NULL,
`BIC` varchar(11) collate latin1_german1_ci default NULL,
PRIMARY ' at line 5
----------------------

That's the full code:
----------------------
--
-- Table structure for table `KontenIBAN`
--

DROP TABLE IF EXISTS `KontenIBAN`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `KontenIBAN` (
`ID` int(11) NOT NULL auto_increment,
`Kontoinhaber` varchar(50) collate latin1_german1_ci NULL,
`Bank` varchar(50) collate latin1_german1_ci default NULL,
`IBAN` varchar(34) collate latin1_german1_ci default NOT NULL,
`BIC` varchar(11) collate latin1_german1_ci default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci;
SET character_set_client = @saved_cs_client;

--
-----------------------


What is wrong there? Has anybody an idea? Thanks.

Options: ReplyQuote


Subject
Written By
Posted
Error 1064 message
December 12, 2016 09:44AM
December 12, 2016 12:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.