标签:ice big begin ide end 字符串 notice declare insert
DO $$
DECLARE
i INTEGER := 1;
identityId BIGINT := 200000000001;
BEGIN
WHILE i < 100 LOOP
identityId = identityId + 1;
raise notice ‘%‘,i;
-- INSERT 语句
-- 将字符串转为 uuid cast (‘057b8c51-f62f-4260-bdbb-‘ || identityId as uuid)
i = i + 1;
END LOOP;
END $$;
标签:ice big begin ide end 字符串 notice declare insert
原文地址:https://www.cnblogs.com/qianxunman/p/13332167.html