[split] error: 1064 - You have an error in your SQL syntax;
#2
RE: [split] error: 1064 - You have an error in your SQL syntax;
(11-10-2017, 01:26 AM)kaz050457 Wrote:
Code:
CREATE TABLE `vacation_notification` (`on_vacation` varchar(255) NOT NULL, notified` varchar(255) CHARACTER SET latin1 NOT NULL, `notified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`on_vacation`,`notified`), CONSTRAINT `vacation_notification_pkey` FOREIGN KEY (`on_vacation`) REFERENCES `vacation` (`email`) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation Notifications';

error: 1064 - 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 '` varchar(255) CHARACTER SET latin1 NOT NULL, `notified_at` timestamp NOT NULL D' at line 1

First, start your own post with your specific issue instead of 'hijacking' another post.

This is a direct dump of my table, it should work for you:

Code:
CREATE TABLE `vacation_notification` (   `on_vacation` varchar(255) NOT NULL,   `notified` varchar(255) CHARACTER SET latin1 NOT NULL,   `notified_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Postfix Admin - Virtual Vacation Notifications'; ALTER TABLE `vacation_notification`   ADD PRIMARY KEY (`on_vacation`,`notified`); ALTER TABLE `vacation_notification`   ADD CONSTRAINT `vacation_notification_pkey` FOREIGN KEY (`on_vacation`) REFERENCES `vacation` (`email`) ON DELETE CASCADE;
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Messages In This Thread
RE: [split] error: 1064 - You have an error in your SQL syntax; - by TGates - 11-10-2017, 03:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 8 ,731 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 32 ,163 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 2 ,318 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 2 Guest(s)