Here is an example to illustrate how the PostgreSQL stored procedure returns a dataset.
Insert into Member_category (name, discount_rate, base_integral) VALUES (' Platinum Members ', 6.5, 10000);
Insert into Member_category (name, discount_rate, base_integral) VALUES (' Senior member ', 7.5, 1000);
Insert into Member_category (name, discount_rate, base_integral) VALUES (' Intermediate members ', 8.5, 100);
Insert into Member_category (name, discount_rate, base_integral) VALUES (' Ordinary members ', 9.5, 10);
Insert into member (Member_num, name, category_id, account, integral, phone, birthday, QQ, email, onaccount, status, Addres S, Tip, start_date, valid_date, password, store_name) VALUES (' 1000001 ', ' Wuyilun ', 1, 100000.00, 100000, 18814117777, ' 199 0-12-12 ', 12345678, ' 123456@qq.com ', 0, 1, ' b3-440 ', ' super Platinum Member, all exempt from single ', ' 2014-01-15 ', 1000000, 12345, ' South China Store ');
Insert into member (Member_num, name, category_id, account, integral, phone, birthday, QQ, email, onaccount, status, Addres S, Tip, start_date, valid_date, password, store_name) VALUES (' 1000002 ', ' Li Xiao ', 2, 1000.00, 100000, 188141177234, ' 1990-12- ', 12345678, ' 123456@qq.com ', 0, 1, ' b3-444 ', ' ... ', ' 2014-01-15 ', 1000000, 12345, ' South China Store ');
Insert into member (Member_num, name, category_id, account, integral, phone, birthday, QQ, email, onaccount, status, Addres S, Tip, start_date, valid_date, password, store_name) VALUES (' 1000003 ', ' Hong Jin package ', 3, 1000.00, 100000, 18814117234, ' 1990-12-1 2 ', 12345678, ' 123456@qq.com ', 0, 1, ' b3-443 ', ' ... ', ' 2014-01-15 ', 1000000, 12345, ' South China Store ');
Insert into member (Member_num, name, category_id, account, integral, phone, birthday, QQ, email, onaccount, status, Addres S, Tip, start_date, valid_date, password, store_name) VALUES (' 1000004 ', ' Jackie ', 4, 100.00, 100000, 18814117723, ' 1990-12-12 ') , 12345678, ' 123456@qq.com ', 0, 1, ' b3-442 ', ' ... ', ' 2014-01-15 ', 1000000, 12345, ' South China Store ');
Insert into member (Member_num, name, category_id, account, integral, phone, birthday, QQ, email, onaccount, status, Addres S, Tip, start_date, valid_date, password, store_name) VALUES (' 1000005 ', ' Fan ', 4, 100.00, 100000, 18814117327, ' 1990-12-12 ', 12345678, ' 123456@qq.com ', 0, 1, ' b3-441 ', ' ... ', ' 2014-01-15 ', 1000000, 12345, ' South China Store ');