Re: LOAD DATA INFILE ERROR 1172 (42000)
Posted by: eric tse
Date: November 21, 2017 11:00AM

Thank you

mysql> LOAD DATA INFILE '/dsk01/apache/tools/IPManagement/dev/scripts/outputs/axial.dmz.reg.sort.entry' replace INTO TABLE ServerIPs FIELDS TERMINATED BY '|' (regip, server);
ERROR 1172 (42000): Result consisted of more than one row


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ServerIPs | CREATE TABLE `ServerIPs` (
`regip` varchar(15) NOT NULL,
`server` varchar(20) DEFAULT NULL,
`lbip` varchar(15) DEFAULT NULL,
`used` varchar(1) DEFAULT NULL,
`balance` varchar(25) DEFAULT NULL,
`keepalive` varchar(30) DEFAULT NULL,
PRIMARY KEY (`regip`),
KEY `serverip` (`regip`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
+-----------+-----------------------------

[b2064@fore ~] cat /dsk01/apache/tools/IPManagement/dev/scripts/outputs/axial.dmz.reg.sort.entry
142.34.230.9|axial.dmz
142.34.230.12|axial.dmz
[b2064@fore ~]

Options: ReplyQuote


Subject
Written By
Posted
November 20, 2017 04:46PM
Re: LOAD DATA INFILE ERROR 1172 (42000)
November 21, 2017 11:00AM


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.