Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RONALDO RODRIGUES DE OLIVEIRA
/
simec-scripts-banco
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c243da0
authored
May 07, 2025
by
RONALDO RODRIGUES DE OLIVEIRA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script libera perfil para acessar botão de declarar omisso
parent
6edfa6ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
declaracao_omissao/REQ000000308160-declaracao-omissao-perfil-botao.sql
declaracao_omissao/REQ000000308160-declaracao-omissao-perfil-botao.sql
0 → 100644
View file @
4c243da0
DO
$$
DECLARE
v_list_cpfs
text
[]
:
=
ARRAY
[
'59883855168'
,
'03116499128'
,
'11283047675'
,
'85513776120'
,
'90541758268'
,
'67423493600'
,
'99272741149'
,
'01423427181'
,
'03566429171'
,
'50420836187'
,
'86385305104'
,
'01810687101'
];
v_cpf
text
;
PFLCOD
CONSTANT
INTEGER
:
=
3128
;
BEGIN
FOREACH
v_cpf
in
ARRAY
v_list_cpfs
LOOP
BEGIN
RAISE
NOTICE
'Seguintes CPFs % CONSTANTE %'
,
v_cpf
,
PFLCOD
;
INSERT
INTO
seguranca
.
perfilusuario
(
usucpf
,
pflcod
)
VALUES
(
v_cpf
,
PFLCOD
);
RAISE
NOTICE
'Inserido com sucesso o CPF = % no perfil do botao declaracao omissao'
,
v_cpf
;
EXCEPTION
WHEN
others
THEN
RAISE
NOTICE
'Registro já existe ou não pode ser inserido'
;
END
;
END
LOOP
;
END
;
$$
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment