Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5256 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
3140
2
feb 23
6929
1
mar 18
4111
1
mar 17
4035
1
ago 16
5712