Data Insert
Posted by: Steve Red
Date: November 12, 2020 04:05AM

create table MyTable(ID INT AUTO_INCREMENT,MyNum BIGINT, PRIMARY KEY (ID));

CREATE PROCEDURE MyProc()
BEGIN
DECLARE I INT DEFAULT 1
WHILE I < 10000000000 DO
INSERT INTO TechVal1(MyNum) VALUES (I)
SET I = I + 1
END WHILE
END;


error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqld --version' at line 1

How do I fix this. Thanks

Options: ReplyQuote


Subject
Written By
Posted
Data Insert
November 12, 2020 04:05AM
November 12, 2020 09:41AM
November 12, 2020 10:02PM
November 13, 2020 12:05AM


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.