ROW_COUNT()
ROW_COUNT()
This function used return the number of rows updated, inserted, or deleted by the preceding statement and -1 when no rows affected.
Syntax:
INSERT INTO [table_name] ([field1,field2,…]) VALUES ([val,val2,..]);
SELECT ROW_COUNT();
Example:
INSERT INTO wordlist (keyword,docid) VALUES (’sample1′,123), (’sample2′,124), (’sample3′,125);
SELECT ROW_COUNT();
