1
- #QUERYS ALTO VALOR
1
+ #EXAMPLES QUERY
2
2
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 } ' );"""
7
7
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