Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4422 Vistas

Hi,

I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.

Thanks.

Avatar
Descartar
Mejor respuesta

Try this code,

    `dbName = self._cr.dbname`

Avatar
Descartar
Mejor respuesta

Hi please try this:-

>> cursor_postgres.execute("select current_database()")

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
abr 24
2030
2
feb 23
6201
1
mar 18
3308
1
mar 17
3310
1
ago 16
4947