Re: How to store a chat in a mysql db
From: Kees Nuyt <k.nuyt_at_nospam.demon.nl>
Date: Tue, 19 Mar 2019 16:32:03 +0100
Message-ID: <cn229edd68563k63ird3idm16tk4ts16j8_at_dim53.demon.nl>
Date: Tue, 19 Mar 2019 16:32:03 +0100
Message-ID: <cn229edd68563k63ird3idm16tk4ts16j8_at_dim53.demon.nl>
On Tue, 19 Mar 2019 09:59:51 +0100, ^Bart <gabriele1NOSPAM_at_hotmail.com> wrote:
> FOREIGN KEY (`user_id`)
> REFERENCES `chat_users` (`id_chat_user`)
> ON DELETE NO ACTION
> ON UPDATE NO ACTION)
Should be:
ON UPDATE NO ACTION
without the closing parenthesis.
> )
> ENGINE=INNODB;
>
> In the third table I have: ERROR 1064 (42000): You have an error in your
> SQL syntax; check the manual that corresponds to your MariaDB server
> version for the right syntax to use near ')
> ENGINE=INNODB' at line 21
>
> It seems everything is ok... :\
[Quoted] Use the "match brackets" function of your editor to find these kind of errors.
-- Regards, Kees NuytReceived on Tue Mar 19 2019 - 16:32:03 CET