I have a text file with names in the following format,
firstname:lastname
Here is the query that I run,
$this->db->query("LOAD DATA INFILE 'names.txt' INTO TABLE names FIELDS TERMINATED BY ':' (firstname, lastname)");
How can I calculate how many rows were inserted?
source
share