· 6 years ago · Apr 07, 2019, 03:46 AM
1<23:05:16> "ryokugan": OLHA SÓ
2<23:05:18> "ryokugan": VOU LANÇAR
3<23:05:19> "ryokugan": VOU VOU LANÇAR
4<23:05:21> "ryokugan": O PASSINHO DO
5<23:05:22> "ryokugan": FUDEU
6<23:05:23> "ryokugan": FUDEU
7<23:05:24> "ryokugan": FUDEU
8<23:05:25> "ryokugan": FUDEU
9<23:05:58> "ryokugan": canal original dele foi deletado
10<23:05:59> "ryokugan": q triste
11<23:06:13> "ryokugan": https://www.youtube.com/watch?v=JOxLrNpixmg
12<23:38:12> "domi": https://www.youtube.com/watch?v=OOOjG9rT4ZA
13<00:03:08> "ryokugan": https://www1.folha.uol.com.br/poder/2019/04/nao-nasci-para-ser-presidente-nasci-para-ser-militar-diz-bolsonaro.shtml
14<00:13:43> "Dogla": https://www.facebook.com/groups/trollandoblog/permalink/2074889372610397/?comment_id=2074947082604626&comment_tracking=%7B%22tn%22%3A%22R%22%7D
15<00:16:03> "Dogla": https://scontent.fssa2-2.fna.fbcdn.net/v/t1.0-9/55929307_2376229175733309_1563531579379154944_n.jpg?_nc_cat=1&_nc_ht=scontent.fssa2-2.fna&oh=98b27071e6aeb40ad349652cb00ec4f8&oe=5D0A15E5
16<00:16:12> "Sugar Daddy": https://www.twitch.tv/giganterichard
17<00:17:54> "Dogla": https://scontent-amt2-1.cdninstagram.com/vp/83ff9204fc1da78550fdddcf2068722e/5CC62C2F/t51.2885-15/sh0.08/e35/s640x640/47582444_732333803817098_2634800212347479764_n.jpg?_nc_ht=scontent-amt2-1.cdninstagram.com
18<00:20:58> "Black Louiz": https://www.google.com/search?biw=1920&bih=947&tbm=isch&sa=1&ei=9xqoXOTOO5fD5OUPlr2t-AM&q=rei+le%C3%A3o+2&oq=rei+le%C3%A3o+2&gs_l=img.3..0l10.19530.23138..23466...2.0..0.127.1419.0j12......1....1..gws-wiz-img.......35i39j0i67.8Lvf0mdgSpI#imgrc=CE-MOs_iBWlP_M:
19<00:23:25> "Dogla": https://i.pinimg.com/originals/7d/3f/bc/7d3fbc24d86de3e561feeb4560ec9937.jpg
20<00:25:27> "Dogla": A verdade é que o Flamengo atualmente é o maior e melhor time do futebol mundial. Times como Palmeiras, Corinthians, Vasco e Cruzeiro estão cansados de jogar contra o Flamengo e serem humilhados. O Flamengo deveria jogar Champions e Premiere League, só assim teria rivais a altura
21<00:25:51> "Dogla": Ele já é o melhor do mundo. Não precisa de bola de ouro pra provar isso. O mais injustiçado pelos Brasileiros e pela FIFA. Carrega a seleção e o PSG sozinho nas costas
22<00:26:14> "Sugar Daddy": concordo plenamente
23<00:26:19> "Sugar Daddy": avante mengão <3
24<00:29:01> *** Você está falando no canal: "AFK"
25<00:29:06> *** Você está falando no canal: "Sala"
26<00:31:19> "Dogla": https://www.facebook.com/jonas.patrao.1/videos/1249735935175306/
27<00:44:07> "ryokugan": pvp intenso mirumok
28<00:44:16> "ryokugan": pvpderua insight bigdmg vs1
29<00:44:47> "Crawling": só dialogo com quem interaje no ts
30<00:44:57> "Crawling": to fazendo alquimia, sem tepo
31<00:44:58> "Crawling": tempo
32<00:45:07> "ryokugan": pronto
33<00:46:49> "Black Louiz": O risco de transmissão do VIH durante o sexo anal é 18 superior ao do sexo vaginal
34<00:47:41> "Black Louiz": http://www.aidsmap.com/O-risco-de-transmiss%C3%A3o-do-VIH-durante-o-sexo-anal-%C3%A9-18-superior-ao-do-sexo-vaginal/page/1446285/
35<00:58:14> "Black Louiz": https://www.facebook.com/watch/?v=385048159013964
36<01:02:47> "Black Louiz": https://scontent.fssa2-1.fna.fbcdn.net/v/t1.0-9/56314621_2371410606243511_4781178115260940288_n.jpg?_nc_cat=110&_nc_ht=scontent.fssa2-1.fna&oh=2adb42dc00ce5c42bfd2b44dc1a5613d&oe=5D4B222E
37<01:08:35> "Black Louiz": https://twitter.com/ogloboesporte/status/1114207145162149889
38<01:12:14> "Black Louiz": https://www.instagram.com/p/Bv4auSGAy_S/
39<02:27:53> "MENGÃO": https://www.facebook.com/groups/idmaberta/permalink/2332416926930231/
40<02:32:01> "MENGÃO": https://www.facebook.com/groups/1802645606636333/permalink/2565832440317642/
41<02:41:24> "ryokugan": boa noite ae guys
42<14:01:56> *** Você está falando no canal: "Bem vindo é a cabeça"
43<14:01:58> *** Você está falando no canal: "Sala"
44<15:42:38> Você deu um toque em "FireHawk" com uma mensagem: ae, vamo fazer atvdd banco?
45<15:54:55> "MENGÃO" está dando um toque em você
46<16:12:18> "Black Louiz": https://twitter.com/NetflixBrasil/status/1114588583929761792
47<18:28:21> "Black Louiz": <00:26:17> "Sugar Daddy": concordo plenamente
48<00:26:22> "Sugar Daddy": avante mengão <3
49<18:29:18> "Black Louiz": ofereceram
50<18:29:23> "Black Louiz": OFERECERAM
51<18:29:29> "Black Louiz": 5K
52<18:29:33> "Black Louiz": CINCO
53<18:29:35> "Black Louiz": MIL
54<18:29:36> "Black Louiz": POR
55<18:29:37> "Black Louiz": MES
56<18:29:44> "Black Louiz": PRA COMER A XERERERERERE DELA
57<18:29:54> "Black Louiz": QUANDO DER
58<18:30:03> "Black Louiz": NAO É TODO DIA
59<18:30:10> "ryokugan": alo?
60<18:30:11> "Black Louiz": EXATEWMEWNTE
61<18:34:58> "Black Louiz": https://youtu.be/ME0YurC6NWk
62<18:53:25> "Black Louiz": https://twitter.com/micheubritoo/status/1114220929029218304
63<18:54:42> "Dogla": https://www.twitch.tv/videos/404690433?t=04h39m23s
64<19:01:24> "Dogla": https://www.twitch.tv/videos/404647669?t=06h08m12s
65<19:11:39> "Black Louiz": https://www.twitch.tv/videos/406586194?t=05h38m58s
66<19:52:51> "Black Louiz": https://www.twitch.tv/policiaemacao
67<20:43:43> "MENGÃO": http://prntscr.com/n8i1v8
68<20:52:27> "ryokugan": https://twitter.com/chanflezor/status/1113694640048308226
69<20:52:28> "ryokugan": KKKKKKKKKKK
70<21:00:38> "Black Louiz": https://twitter.com/GabrielDoZap/status/1114347369506721792
71<21:04:35> "Dogla": https://twitter.com/AAAAAGGHHHH/status/1114629014348390400
72<21:05:51> "Black Louiz": https://twitter.com/AAAAAGGHHHH/status/1114276396518400001
73<21:07:31> "Dogla": https://twitter.com/cctvidiots/status/1112726696950554625
74<21:15:15> "Daredevil" está dando um toque em você: e ai man
75<21:18:42> "Dogla" está dando um toque em você: man, dpois tenho q te mostrar uma mina q tem umas musicas mt fodas
76<21:18:58> Você deu um toque em "Dogla" com uma mensagem: quem?
77<21:19:09> "Dogla" está dando um toque em você: Georgia
78<21:19:26> Você deu um toque em "Dogla" com uma mensagem: to lgd
79<21:20:00> Você deu um toque em "Dogla" com uma mensagem: na real pera, acho q n conheço, confundi
80<21:20:12> "Dogla" está dando um toque em você: dpois te passo
81<21:20:24> Você deu um toque em "Dogla" com uma mensagem: conheço uma mas é do soundcloud
82<21:20:28> Você deu um toque em "Dogla" com uma mensagem: e ela só faz covers
83<21:20:51> Você deu um toque em "FireHawk" com uma mensagem: alo
84<21:29:27> *** Você está falando no canal: "Sala de QUEM TA CANSADO"
85<21:31:02> Você deu um toque em "FireHawk" com uma mensagem: gogo
86<22:05:17> "ryokugan": http://luizhrios.ddns.net:81/selects.sql.php
87<22:06:42> "FireHawk": https://pastebin.com/aZfcumBz
88<22:11:18> "Daredevil": CREATE TABLE correntista_auditoria (
89 operacao char(1) NOT NULL,
90 usuario varchar NOT NULL,
91 data timestamp NOT NULL,
92 nm varchar(40)
93);
94
95
96create or replace function f_trg_correntista1()
97returns trigger
98as $$
99begin
100 if TG_OP ='INSERT' then
101 insert into correntista_auditoria (operacao, usuario, data, nm) values("I", now(), user, new.*);
102 return NEW;
103 elsif TG_OP ='UPDATE' then
104 insert into correntista_auditoria (operacao, usuario, data, nm) values("A", now(), user, new.*);
105 return NEW;
106 elsif TG_OP ='DELETE' then
107 insert into correntista_auditoria (operacao, usuario, data, nm) values("I", now(), user, old.*);
108 return OLD;
109 end if;
110end;
111$$ language plpgsql;
112
113create trigger trg_correntista1
114before insert
115on correntista
116for each row
117execute procedure f_trg_correntista1();
118<22:19:33> "Daredevil": create or replace function f_trg_correntista1()
119returns trigger
120as $$
121begin
122 if TG_OP ='INSERT' then
123 insert into correntista_auditoria (operacao, data, usuario, nm) values("I", now(), user, new.*);
124 return NEW;
125 elsif TG_OP ='UPDATE' then
126 insert into correntista_auditoria (operacao, data, usuario, nm) values("A", now(), user, new.*);
127 return NEW;
128 elsif TG_OP ='DELETE' then
129 insert into correntista_auditoria (operacao, data, usuario, nm) values("D", now(), user, old.*);
130 return OLD;
131 end if;
132end;
133$$ language plpgsql;
134<22:34:35> "Daredevil": CREATE TABLE correntista_auditoria (
135 operacao char(1) NOT NULL,
136 usuario varchar NOT NULL,
137 data timestamp NOT NULL,
138 nm varchar(40) not null,
139 id int not null
140);
141
142
143create or replace function f_trg_correntista1()
144returns trigger
145as $$
146begin
147 if TG_OP ='INSERT' then
148 insert into correntista_auditoria (operacao, data, usuario, nm, id_correntista) values('I', now(), user, new.nm, new.id);
149 return NEW;
150 elsif TG_OP ='UPDATE' then
151 insert into correntista_auditoria (operacao, data, usuario, nm, id_correntista) values('A', now(), user, new.nm, new.id);
152 return NEW;
153 elsif TG_OP ='DELETE' then
154 insert into correntista_auditoria (operacao, data, usuario, nm, id_correntista) values('D', now(), user, old.nm, old.id);
155 return OLD;
156 end if;
157end;
158$$ language plpgsql;
159
160create trigger trg_correntista1
161before insert
162<22:36:58> "FireHawk": login: adriano
163senha: adriano
164<22:37:14> "Daredevil": create trigger trg_correntista1
165before insert
166on correntista
167for each row
168execute procedure f_trg_correntista1();
169<22:40:57> "ryokugan": https://app.prntscr.com/pt-br/
170<22:45:01> "Daredevil": http://prntscr.com/n8iuaz
171<22:45:56> "Daredevil": create or replace function f_trg_saldo()
172returns trigger
173as $$
174begin
175 raise notice 'Usuário=% | data=%',CURRENT_USER, CURRENT_TIMESTAMP;
176 if TG_OP ='INSERT' then
177 update movimento set vl = NEW.vl;
178 raise notice 'INSERT -> Saldo atual -> Saldo=%', NEW.vl;
179 raise notice '----------------------------------------------------------';
180 return NEW;
181 elsif TG_OP ='UPDATE' then
182 update movimento set vl = NEW.vl;
183 raise notice 'UPDATE -> Saldo anterior -> Saldo=%', OLD.vl;
184 raise notice 'UPDATE -> Saldo atual -> Saldo=%', NEW.vl;
185 raise notice '----------------------------------------------------------';
186 return NEW;
187 elsif TG_OP ='DELETE' then
188 raise notice 'DELETE -> Saldo deletado -> Saldo=%', OLD.vl;
189 return OLD;
190 end if;
191end;
192$$ language plpgsql;
193
194create trigger trg_saldo
195before insert or update or delete
196on movimento
197for each row
198execute pr
199<22:53:38> "Daredevil": http://prntscr.com/n8iwcj
200<22:55:13> "ryokugan": luizhrios.ddns.net
201<22:55:20> "ryokugan": 10001
202<23:02:18> "Daredevil": insert into movimento (9, now(), 100, 'saque&apos
203<23:02:52> "Daredevil": ERROR: syntax error at or near "9"
204LINE 2: insert into movimento (9, now(), 100, 'saque&apos
205 ^
206SQL state: 42601
207Character: 50
208<23:07:39> "FireHawk": http://luizhrios.ddns.net:81/atv.txt
209*** Fim do histórico do bate-papo
210<23:15:07> *** Você está falando no canal: "Bem vindo é a cabeça"
211<23:15:10> *** Você está falando no canal: "Sala de QUEM TA CANSADO"
212<23:16:24> "Daredevil": http://prntscr.com/n8j1g3
213<23:18:55> "ryokugan â›§": https://forum.imasters.com.br/topic/551758-trigger-atualizar-coluna-da-mesma-tabela-em-postgresql/
214<23:22:35> "ryokugan â›§": create trigger trg_correntista1
215before insert
216on correntista
217for each row
218execute procedure f_trg_correntista1();
219<23:28:01> "Daredevil": drop trigger if exists trg_correntista1 on correntista;
220
221create trigger trg_correntista1
222before insert or update or delete
223on correntista
224for each row
225<23:32:18> "ryokugan â›§": create table saldo (
226 id_correntista integer not null,
227 dt date not null,
228 vl numeric(10,2) not null,
229 constraint pk_saldo
230 primary key (id_correntista, dt),
231 constraint fk_saldo_correntista
232 foreign key (id_correntista)
233 references correntista
234 on update cascade);
235<23:48:12> "ryokugan â›§": if TG_OP ='INSERT' then
236 insert movimento set vl = NEW.vl;
237 // update saldo set vl = vl+NEW.vl //
238 raise notice 'INSERT -> Saldo atual -> Saldo=%', NEW.vl;
239 raise notice '----------------------------------------------------------';
240 return NEW;
241<00:00:40> "ryokugan â›§": (9, now(), 100, 'saque&apos
242<00:01:38> "ryokugan â›§": select * from saldo
243<00:15:14> "Daredevil": create or replace function f_trg_saldo()
244returns trigger
245as $$
246begin
247 if TG_OP ='INSERT' then
248 case when id.saldo is null then insert into saldo(id_correntista, dt, vl) values (new.id_correntista, now(),new.vl);
249 else update saldo set vl = new.vl where id_correntista.saldo = id_correntista.movimento;
250 return NEW;
251 end if;
252 end;
253$$ language plpgsql;
254<00:17:35> "ryokugan â›§": insert into saldo(id_correntista, dt, vl) values (new.id_correntista, now(),new.vl);
255<00:20:33> "ryokugan â›§": INSERT INTO movimento(id_correntista, dt,vl) values (9, now(), 100);
256<00:20:47> "ryokugan â›§": INSERT INTO movimento(id_correntista, dt,vl) values (9, now(), 100, 'saldo'
257<00:21:00> "ryokugan â›§": INSERT INTO movimento(id_correntista, dt,vl) values (9, now(), 100,'saque&apos
258<00:22:02> "ryokugan â›§": INSERT INTO movimento(id_correntista, dt,vl,ds_historico) values (9, now(), 100,' saque' )
259<00:39:52> "Daredevil": http://prntscr.com/n8jigg
260<00:40:07> "Daredevil": create or replace function f_trg_saldo()
261returns trigger
262as $$
263begin
264 if TG_OP ='INSERT' then
265 if id.saldo is null then insert into saldo(id_correntista, dt, vl) values (new.id_correntista, now(),new.vl);
266 else update saldo set vl = new.vl where id_correntista.saldo = id_correntista.movimento;
267end if;
268 return NEW;
269 end if;
270end;
271$$ language plpgsql;
272<00:42:22> "ryokugan â›§": Error Message column "id_correntista" of relation "correntista_auditoria" does not exist