I need to insert the records that aren't existing in the table companies.
I'm using the @@ROWCOUNT
method to check if it exists.
UPDATE companies SET `name`='<string>' WHERE `name`='<string>';
IF @@ROWCOUNT = 0
INSERT INTO companies(`name`, temp) VALUES('<string>', 1);
This is what I do ^
And just keeping this error: Unknown system variable 'ROWCOUNT'