Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql loop insert

CREATE PROCEDURE myproc()
BEGIN
    DECLARE i int DEFAULT 237692001;
    WHILE i <= 237692004 DO
        INSERT INTO mytable (code, active, total) VALUES (i, 1, 1);
        SET i = i + 1;
    END WHILE;
END
DELIMITER;
CALL myproc;
Comment

PREVIOUS NEXT
Code Example
Sql :: psql list rules 
Sql :: sqlserver add column to table 
Sql :: group_concat limit mysql 
Sql :: use cases condition in sql query laravel 
Sql :: how to backup mysql database linux 
Sql :: mysql count grouped rows 
Sql :: sql exclude duplicates and find even id 
Sql :: mysql select greater than yesterday 
Sql :: timestamp in sqlite 
Sql :: how to check database engine in mysql 
Sql :: show structure of table in sql 
Sql :: how to convert number to hours and minutes in oracle sql 
Sql :: oracle list tables 
Sql :: set statistics on in ssms 
Sql :: psql count where not null 
Sql :: oracle current date 
Sql :: show per page table in xampp 
Sql :: foreign key oracle 
Sql :: table infromation in sql server 
Sql :: oracle apex prevent initial load 
Sql :: sql server pagination 
Sql :: select * from table where name like 
Sql :: display total number of tables in mysql 
Sql :: update data with random values postgres 
Sql :: mysql error codeigniter 
Sql :: SQL server query column yes or no 
Sql :: t SQl Checking Your Username 
Sql :: login to mysql 
Sql :: oracle alter table add column not null 
Sql :: oracle ora-00054 causes 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =