SELECT without Result Set Tab?
Hi everyone,
I could use an assist with something.
I am building a table with two fields, ID and MatchID. The first is an autoincrementing ID and the second an integer column that will hold a random integer between 1 and 86,000. I will generate about 2,000 of these rows.
My insert code runs like this:
SET @randint= CAST(RAND()*86000 as signed);
SELECT @varexists:=COUNT(*) from ids where matchid = @randint;
IF @varexists = 0 then
INSERT INTO ids (matchid) values (@randint);
set @count = @count + 1;
END IF;
I am running this in MySQL workbench. Every time the SELECT runs, MySQL Workbech generates a result set tab for it. I would like to avoid that as it is unnecessary. Is there a way for me to do that?
Thanks
Subject
Views
Written By
Posted
SELECT without Result Set Tab?
1562
April 16, 2013 08:54AM
696
April 17, 2013 01:37AM
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.