Pop-Up Thingie
Sidebar
Too Lazy BBS
Home
Forum
Files
Chat
Bulletins
Top doors
MOTD
BBS Stats
Radio
AvatarChat
Dark
Register
Log in
Username
Password
Sidebar
Forum
USENET
comp.databases.mysql
another load data infile issue
From
DFS
@nospam@dfs.com to
comp.databases.mysql
on Tue Aug 17 13:13:36 2021
From Newsgroup: comp.databases.mysql
MariaDB allows NULLs in a FK field, but 'load data infile' insists on
NOT NULL
load data infile:
"ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`db`.`table`, CONSTRAINT `ibfk_1` FOREIGN KEY
(`fkcol`) REFERENCES `parenttable` (`parentcolumn`))
MariaDB [db]> insert into tbl values (999999,'test',null);
Query OK, 1 row affected (0.161 sec)
(the third column is the FK column)
--- Synchronet 3.21d-Linux NewsLink 1.2
Who's Online
System Info
Sysop:
Amessyroom
Location:
Fayetteville, NC
Users:
74
Nodes:
6 (
0
/
6
)
Uptime:
50:17:34
Calls:
1,100
Files:
1,339
Messages:
275,859