How to pass a python array to an oracle stored procedure?
问题 I have a problem. When I pass a Python array: self.notPermited = [2,3] This is my procedure def select_ids_entre_amistades(self,cod_us,ids_not): lista = [] try: cursor = self.__cursor.var(cx_Oracle.CURSOR) print ids_not data = self.__cursor.arrayvar(cx_Oracle.NUMBER, ids_not) print data l_query = self.__cursor.callproc("SCHEMA.PROC_SELECT_IDS_ENT_AMISTADES", [cursor,cod_us,data]) lista = l_query[0] return lista except cx_Oracle.DatabaseError as ex: error, = ex.args print(error.message) return