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
Recent Visitors
Sykotik
Tue Apr 14 16:22:53 2026
from
Canada
via
Telnet
Morningstarr
Sun Apr 12 15:27:15 2026
from
Concord, Nc
via
Telnet
Rixter
Fri Apr 3 06:57:42 2026
from
Madison, Nc
via
SSH
Voltman
Wed Apr 1 11:17:50 2026
from
Calgary, Alberta
via
Telnet
System Info
Sysop:
Amessyroom
Location:
Fayetteville, NC
Users:
63
Nodes:
6 (
0
/
6
)
Uptime:
492975:41:34
Calls:
840
Files:
1,301
D/L today:
16 files
(28,385K bytes)
Messages:
264,959