db_testdata #21
@ -20,5 +20,4 @@ drop table if exists user;
|
||||
|
||||
drop table if exists user_address;
|
||||
|
||||
drop table if exists user_payment;
|
||||
|
||||
drop table if exists user_payment;
|
||||
@ -1,8 +1,9 @@
|
||||
CREATE PROCEDURE prepare_data()
|
||||
CREATE PROCEDURE fill_user_table()
|
||||
BEGIN
|
||||
DECLARE i INT DEFAULT 1;
|
||||
DECLARE emailString CHAR(16) DEFAULT 'test';
|
||||
|
||||
DELETE FROM webshop.user;
|
||||
|
||||
WHILE i < 100
|
||||
DO
|
||||
@ -10,7 +11,5 @@ BEGIN
|
||||
INSERT INTO webshop.user(is_active, name, lower_name, email)
|
||||
VALUES ('1', 'harry', 'potter', emailString);
|
||||
SET i = i + 1;
|
||||
end while;
|
||||
end;
|
||||
|
||||
#CALL prepare_data();
|
||||
END WHILE;
|
||||
END;
|
||||
Loading…
x
Reference in New Issue
Block a user