Skip to content

Commit ffb98f8

Browse files
author
JeremyAndress
committed
🔒 remove tables
1 parent 0b5be76 commit ffb98f8

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/db/querys.py

+5-21
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
1-
#QUERYS ALTO VALOR
1+
#EXAMPLES QUERY
22

3-
def insert_notif(canal,msisdn,fr,id_event,monto):
4-
return f"""INSERT INTO public.notificaciones
5-
(canal, msisdn, fecha_registro, id_evento_id, monto)
6-
VALUES('{canal}', '{msisdn}', '{fr}', {id_event}, {monto});"""
3+
def insert_notif(channel,number,date):
4+
return f"""INSERT INTO public.table
5+
(channel, number, date)
6+
VALUES('{channel}', '{number}', '{date}' );"""
77

8-
#QUERYS SCE PROYECTOS
9-
10-
def insert_tbl(msisdn, ini_fec,ini_estado,now_fec,now_estado,now_monto):
11-
return f""" INSERT INTO sce_proyectos.tbl_altovalor_estado
12-
(msisdn, ini_fec, ini_estado, now_fec, now_estado, now_monto)
13-
VALUES('{msisdn}', '{ini_fec}', {ini_estado}, '{now_fec}', {now_estado}, {now_monto}); """
14-
15-
16-
def delete_tbl(id):
17-
return f""" DELETE FROM sce_proyectos.tbl_altovalor_estado
18-
WHERE id='{id}'; """
19-
20-
def select_tbl(msisdn):
21-
return f""" SELECT id, msisdn, ini_fec, ini_estado, now_fec, now_estado, now_monto
22-
FROM sce_proyectos.tbl_altovalor_estado
23-
where msisdn='{msisdn}'; """

0 commit comments

Comments
 (0)