Sqlite. Comando para mostrar las BBDD que ya están creadas
3 seguidores
¿Sabeis si Sqlite tiene algun comando para mostrar las bases de datos que ya estan creadas?
Haciendo pruebas he creado unas cuantas y ahora me gustaria borrarlas. Pero no consigo encontrar un comando que muestre la lista de BDs existentes.
Kr0n
Existir, existe, pero no hace exactamente lo que pides:
<fieldset>The ".databases" command shows a list of all databases open in the current connection. There will always be at least 2. The first one is "main", the original database opened. The second is "temp", the database used for temporary tables. There may be additional databases listed for databases attached using the ATTACH statement. The first output column is the name the database is attached with, and the second column is the filename of the external file.</fieldset>
Derus
Ok como son archivos con borrarlos es suficiente ;). ya esta hecho.
Aunque la verdad es que no estaria de mas un comando del tipo Show databases.
dagi3d
que yo sepa las base de datos sqlite en realidad son ficheros autosuficientes e independientes, así que en principio no habría manera de saberlo(aunque igual me estoy colando)